Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community: chroma error patch(attribute changed on chroma) #27827

Merged
merged 35 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4d345dc
ChromaDB error fix
shjunn Nov 1, 2024
0ad9715
Same fixes on langchain/libs/partners/chroma/langchain_chroma/vectors…
shjunn Nov 1, 2024
7b31bfe
backward compatibility
shjunn Nov 4, 2024
99faf40
docs: Reference new databricks-langchain package (#27828)
prithvikannan Nov 1, 2024
8da6211
many: use core 0.3.15 (#27834)
baskaryan Nov 1, 2024
a1fad0f
airbyte: remove from master (#27837)
baskaryan Nov 1, 2024
b0a73a3
infra: remove some special cases (#27839)
efriis Nov 1, 2024
76f4b11
docs: INVALID_CHAT_HISTORY redirect (#27845)
efriis Nov 1, 2024
a48e475
core: fix CommaSeparatedListOutputParser to handle columns that may c…
jkyamog Nov 1, 2024
09258cc
chroma[minor]: release 0.2.0 (#27840)
baskaryan Nov 2, 2024
029186f
docs: fix undefined 'data' variable in document_loader_csv.ipynb (#27…
ono-hiroki Nov 4, 2024
af350c4
community: read function call from `tool_calls` for Qianfan (#26208)
Dobiichi-Origami Nov 4, 2024
b91c70a
community: set default `output_token_limit` value for `PowerBIToolkit…
vndee Nov 4, 2024
c2b78a9
infra: add neo4j to package list (#27833)
efriis Nov 4, 2024
822abaf
Revert "infra: add neo4j to package list" (#27887)
efriis Nov 4, 2024
7a1790c
Add nvidia as provider for embedding, llm (#27810)
raspawar Nov 4, 2024
8509d10
infra: release tag compute (#27836)
efriis Nov 4, 2024
4a5c4dd
qdrant,nomic[minor]: bump core deps (#27849)
baskaryan Nov 4, 2024
a9014ca
docs: Update broken vectorstore urls in retrievers.ipynb (#27838)
sifatj Nov 4, 2024
c8faa72
docs: Update VectorStore api reference url in rag.ipynb (#27841)
sifatj Nov 4, 2024
2d4487b
community: fixed bug in GraphVectorStoreRetriever (#27846)
epinzur Nov 4, 2024
ee5167b
docs: Update VectorStore .as_retriever method url in vectorstore_retr…
sifatj Nov 4, 2024
f4f02e4
docs: Update max_marginal_relevance_search api reference url in multi…
sifatj Nov 4, 2024
5f73f76
docs: Update VectorStore as_retriever method url in qa_chat_history_h…
sifatj Nov 4, 2024
791c5b4
docs: Update `messages.mdx` (#27856)
danielvdao Nov 4, 2024
71fd18a
infra: fix prev tag calculation (#27890)
efriis Nov 4, 2024
b3d84ea
community: update Vectara integration (#27869)
ofermend Nov 4, 2024
646c074
infra: fix prev tag condition (#27891)
efriis Nov 4, 2024
125230c
infra: fix prev tag output (#27892)
efriis Nov 4, 2024
c7dc8b7
community: ✨ Use new OVHcloud batch embedding (#26209)
philippart-s Nov 4, 2024
29ef558
docs: sidebar capitalization (#27894)
baskaryan Nov 4, 2024
b2266db
infra: get min versions (#27896)
efriis Nov 4, 2024
c459892
Merge branch 'master' into community_chroma_patch
shjunn Nov 4, 2024
ebe0fe6
Merge branch 'master' into community_chroma_patch
efriis Nov 5, 2024
0abf065
x
efriis Nov 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/community/langchain_community/vectorstores/chroma.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def update_documents(self, ids: List[str], documents: List[Document]) -> None:
embeddings = self._embedding_function.embed_documents(text)

if hasattr(
self._collection._client, "max_batch_size"
self._collection._client, "get_max_batch_size"
): # for Chroma 0.4.10 and above
from chromadb.utils.batch_utils import create_batches

Expand Down Expand Up @@ -824,7 +824,7 @@ def from_texts(
ids = [str(uuid.uuid4()) for _ in texts]
if hasattr(
chroma_collection._client, # type: ignore[has-type]
"max_batch_size", # type: ignore[has-type]
"get_max_batch_size", # type: ignore[has-type]
): # for Chroma 0.4.10 and above
from chromadb.utils.batch_utils import create_batches

Expand Down
4 changes: 2 additions & 2 deletions libs/partners/chroma/langchain_chroma/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ def update_documents(self, ids: List[str], documents: List[Document]) -> None:
embeddings = self._embedding_function.embed_documents(text)

if hasattr(
self._collection._client, "max_batch_size"
self._collection._client, "get_max_batch_size"
): # for Chroma 0.4.10 and above
from chromadb.utils.batch_utils import create_batches

Expand Down Expand Up @@ -1070,7 +1070,7 @@ def from_texts(
if ids is None:
ids = [str(uuid.uuid4()) for _ in texts]
if hasattr(
chroma_collection._client, "max_batch_size"
chroma_collection._client, "get_max_batch_size"
): # for Chroma 0.4.10 and above
from chromadb.utils.batch_utils import create_batches

Expand Down
Loading