You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Make OpenAI optional and use local model by default - Update main.py to use LocalRAGAgent when no OpenAI key is present Update README to reflect that OpenAI is optional - Make Mistral-7B the default RAG model
Copy file name to clipboardExpand all lines: agentic_rag/README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The system has the following features:
9
9
- Persistent vector storage with ChromaDB
10
10
- Smart context retrieval and response generation
11
11
- FastAPI-based REST API
12
-
- Support for both OpenAI-based agents or local, transformer-based agents
12
+
- Support for both OpenAI-based agents or local, transformer-based agents (Mistral-7B by default)
13
13
14
14
## Setup
15
15
@@ -21,13 +21,15 @@ The system has the following features:
21
21
pip install -r requirements.txt
22
22
```
23
23
24
-
2. In case you're going to use the OpenAI-based agent, create a `.env` file with your OpenAI API key:
24
+
2. (Optional) If you want to use the OpenAI-based agent instead of the default local model, create a `.env` file with your OpenAI API key:
25
25
26
26
```bash
27
27
OPENAI_API_KEY=your-api-key-here
28
28
```
29
29
30
-
3. If you're planning to use the local open-source model alternative for RAG, there's no additional configuration needed. The system will automatically use `Mistral-7B-Instruct-v0.2` for text generation.
30
+
If no API key is provided, the system will automatically use the local Mistral-7B model for text generation.
31
+
32
+
3. The system will automatically download and use `Mistral-7B-Instruct-v0.2`for text generation when using the local model. No additional configuration is needed.
0 commit comments