Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

make the rag module optional

seehie88aa63bf0f4
diff --git a/requirements.txt b/requirements.txt
index 83565278b..a447eef13 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -10,14 +10,6 @@ typer==0.9.0
# godot==0.1.1
# google_api_python_client==2.93.0 # Used by search_engine.py
lancedb==0.4.0
-llama-index-core==0.10.15
-llama-index-embeddings-azure-openai==0.1.6
-llama-index-embeddings-openai==0.1.5
-llama-index-llms-azure-openai==0.1.4
-llama-index-readers-file==0.1.4
-llama-index-retrievers-bm25==0.1.3
-llama-index-vector-stores-faiss==0.1.1
-chromadb==0.4.23
loguru==0.6.0
meilisearch==0.21.0
numpy==1.24.3
diff --git a/setup.py b/setup.py
index df9bedc9b..f834b4c44 100644
--- a/setup.py
+++ b/setup.py
@@ -28,6 +28,16 @@ extras_require = {
"search-google": ["google-api-python-client==2.94.0"],
"search-ddg": ["duckduckgo-search~=4.1.1"],
"ocr": ["paddlepaddle==2.4.2", "paddleocr>=2.0.1", "tabulate==0.9.0"],
+ "rag": [
+ "llama-index-core==0.10.15",
+ "llama-index-embeddings-azure-openai==0.1.6",
+ "llama-index-embeddings-openai==0.1.5",
+ "llama-index-llms-azure-openai==0.1.4",
+ "llama-index-readers-file==0.1.4",
+ "llama-index-retrievers-bm25==0.1.3",
+ "llama-index-vector-stores-faiss==0.1.1",
+ "chromadb==0.4.23",
+ ],
}
extras_require["test"] = [
@@ -42,7 +52,6 @@ extras_require["test"] = [
"connexion[uvicorn]~=3.0.5",
"azure-cognitiveservices-speech~=1.31.0",
"aioboto3~=11.3.0",
- "chromadb==0.4.23",
"gradio==3.0.0",
"grpcio-status==1.48.2",
"pylint==3.0.3",