Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidminas committed Dec 2, 2023
1 parent 159d7b8 commit cf4053a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion chatdocs/data/chatdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ port: 5000
auth: false

chroma:
is_persistent: true
persist_directory: db
chroma_db_impl: duckdb+parquet
anonymized_telemetry: false

retriever:
Expand Down
4 changes: 1 addition & 3 deletions chatdocs/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from chromadb.config import Settings
from langchain.docstore.document import Document
from langchain.vectorstores import Chroma
from langchain.vectorstores.chroma import Chroma

from .embeddings import get_embeddings

Expand All @@ -11,7 +11,6 @@ def get_vectorstore(config: Dict[str, Any]) -> Chroma:
embeddings = get_embeddings(config)
config = config["chroma"]
return Chroma(
persist_directory=config["persist_directory"],
embedding_function=embeddings,
client_settings=Settings(**config),
)
Expand All @@ -26,6 +25,5 @@ def get_vectorstore_from_documents(
return Chroma.from_documents(
documents,
embeddings,
persist_directory=config["persist_directory"],
client_settings=Settings(**config),
)
19 changes: 11 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,35 @@
],
},
install_requires=[
"accelerate>=0.20.3",
"chromadb>=0.3.0,<0.4.0",
"accelerate>=0.25.0",
"chromadb>=0.4.16",
"ctransformers>=0.2.25,<0.3.0",
"deepmerge>=1.1.0,<2.0.0",
"InstructorEmbedding>=1.0.1,<2.0.0",
"langchain>=0.0.295",
"langchain>=0.0.344",
"openai",
"pydantic>=1.9,<2.0",
"pyyaml>=6.0",
"sentence-transformers>=2.2.2,<3.0.0",
"scikit-learn>=1.3.0",
"scikit-learn>=1.3.2",
"tqdm>=4.64.1,<5.0.0",
"transformers>=4.32.0",
"transformers>=4.35.0",
"typer>=0.9.0",
"typing-extensions>=4.4.0,<5.0.0",
# UI
"streamlit>=1.26.0",
"streamlit>=1.29.0",
"plotly>=5.17.0",
# Document Loaders
"extract-msg>=0.41.0,<0.42.0",
"pandoc>=2.3,<3.0.0",
"pypandoc>=1.11,<2.0.0",
"nougat-ocr==0.1.9", # needs specific version to avoid ERROR:root:daemonic processes are not allowed to have children
"unstructured>=0.6.0,<0.7.0",
# Temporary fix for `rich`, `numpy` version conflicts.
"argilla==1.8.0",
# Temporary fix for version conflicts.
"lightning==2.1.2",
"numpy==1.26.0",
# Fix for https://github.com/GrahamDumpleton/wrapt/issues/196 dependency from fastapi from chromadb
"wrapt>=1.14.0",
],
extras_require={
"tests": [
Expand Down

0 comments on commit cf4053a

Please sign in to comment.