File size: 1,134 Bytes
7341b29
e855fd6
74f4036
7341b29
74f4036
e855fd6
 
7341b29
74f4036
 
7341b29
 
74f4036
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855fd6
74f4036
e855fd6
74f4036
e855fd6
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: Predii-RAG-Assignment
emoji: 🤖
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false
license: mit
short_description: Ford F-150 Service Manual RAG System
---

# Ford F-150 Service Manual RAG System

A production-ready Retrieval-Augmented Generation (RAG) system for querying Ford F-150 service manual information.

## Features

- **Query Rewriting**: Step-back prompting for better retrieval
- **Hybrid Search**: Dense (vector) + Sparse (BM25) retrieval
- **Cohere Reranking**: Precision ranking of results
- **Dynamic Chunk Selection**: 1-20 chunks based on query complexity
- **MMR Diversification**: Reduced redundancy in results
- **Faithfulness Evaluation**: Quality assurance using LLM-as-judge
- **Comprehensive Audit Logging**: Track all queries and responses

## Usage

Simply type your question about Ford F-150 suspension and repair procedures in the interface above.

## Technology Stack

- **LLM**: OpenAI GPT-4o-mini
- **Embeddings**: OpenAI text-embedding-3-large
- **Vector DB**: ChromaDB
- **Reranking**: Cohere rerank-english-v3.0
- **Web Framework**: Gradio
- **Deployment**: Docker