DSPy: The framework for programming—not prompting—language models
Python
Alphabetically sort Vector DB integrations
Connor Shorten41413dfb7d88
diff --git a/README.md b/README.mdindex 59dca08ac..12dced97f 100644--- a/README.md+++ b/README.md@@ -63,10 +63,10 @@ Or open our intro notebook in Google Colab: [<img align="center" src="https://coBy default, DSPy installs the latest `openai` from pip. However, if you install old version before OpenAI changed their API `openai~=0.28.1`, the library will use that just fine. Both are supported.-For the optional Pinecone, Qdrant, [chromadb](https://github.com/chroma-core/chroma), or [marqo](https://github.com/marqo-ai/marqo) retrieval integration(s), include the extra(s) below:+For the optional (alphabetically sorted) [Chromadb](https://github.com/chroma-core/chrome), or [Qdrant](https://github.com/qdrant/qdrant), [Marqo](https://github.com/marqo-ai/marqo), Pinecone, or [Weaviate](https://github.com/weaviate/weaviate) retrieval integration(s), include the extra(s) below:```-pip install dspy-ai[pinecone] # or [qdrant] or [chromadb] or [marqo] or [mongodb]+pip install dspy-ai[chromadb] # or [qdrant] or or [marqo] or [mongodb] or [pinecone] or [weaviate]```## 2) Documentationdiff --git a/pyproject.toml b/pyproject.tomlindex dcf35ccd6..8878b279a 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -32,10 +32,11 @@ dependencies = [][project.optional-dependencies]-pinecone = ["pinecone-client~=2.2.4"]-qdrant = ["qdrant-client~=1.6.2", "fastembed~=0.1.0"]chromadb = ["chromadb~=0.4.14"]+qdrant = ["qdrant-client~=1.6.2", "fastembed~=0.1.0"]marqo = ["marqo"]+pinecone = ["pinecone-client~=2.2.4"]+weaviate = ["weaviate-client~=3.26.1"]docs = ["sphinx>=4.3.0","furo>=2023.3.27",@@ -80,11 +81,12 @@ tqdm = "^4.66.1"datasets = "^2.14.6"requests = "^2.31.0"optuna = "^3.4.0"-pinecone-client = {version = "^2.2.4", optional = true}-qdrant-client = {version = "^1.6.2", optional = true}-fastembed = {version = "^0.1.0", optional = true}chromadb = {version = "^0.4.14", optional = true}+fastembed = {version = "^0.1.0", optional = true}marqo = {version = "*", optional = true}+qdrant-client = {version = "^1.6.2", optional = true}+pinecone-client = {version = "^2.2.4", optional = true}+weaviate-client = {version = "^3.26.1", optional=true}sphinx = {version = ">=4.3.0", optional = true}furo = {version = ">=2023.3.27", optional = true}docutils = {version = "<0.17", optional = true}@@ -99,10 +101,11 @@ sphinx-reredirects = {version = "^0.1.2", optional = true}sphinx-automodapi = {version = "0.16.0", optional = true}[tool.poetry.extras]-pinecone = ["pinecone-client"]-qdrant = ["qdrant-client", "fastembed"]chromadb = ["chromadb"]+qdrant = ["qdrant-client", "fastembed"]marqo = ["marqo"]+pinecone = ["pinecone-client"]+weaviate = ["weaviate-client"]docs = ["sphinx","furo",diff --git a/setup.py b/setup.pyindex 4d3b45ba8..6c5175e60 100644--- a/setup.py+++ b/setup.py@@ -21,13 +21,13 @@ setup(packages=find_packages(include=['dsp.*', 'dspy.*', 'dsp', 'dspy']),python_requires='>=3.9',install_requires=requirements,- extras_require={+ extras_require={+ "chromadb": ["chromadb~=0.4.14"],+ "qdrant": ["qdrant-client", "fastembed"],+ "marqo": ["marqo"],+ "mongodb": ["pymongo~=3.12.0"],"pinecone": ["pinecone-client~=2.2.4"],- "qdrant": ["qdrant-client", "fastembed"],- "chromadb": ["chromadb~=0.4.14"],- "marqo": ["marqo"],"weaviate": ["weaviate-client~=3.26.1"],- "mongodb": ["pymongo~=3.12.0"],},classifiers=["Development Status :: 3 - Alpha",