Files
langchain/tests/integration_tests/vectorstores
Caleb Ellington c5a7a85a4e fix chroma update_document to embed entire documents, fixes a characer-wise embedding bug (#5584)
# Chroma update_document full document embeddings bugfix

Chroma update_document takes a single document, but treats the
page_content sting of that document as a list when getting the new
document embedding.

This is a two-fold problem, where the resulting embedding for the
updated document is incorrect (it's only an embedding of the first
character in the new page_content) and it calls the embedding function
for every character in the new page_content string, using many tokens in
the process.

Fixes #5582


Co-authored-by: Caleb Ellington <calebellington@Calebs-MBP.hsd1.ca.comcast.net>
2023-06-02 11:12:48 -07:00
..
2023-04-26 21:45:03 -07:00
2023-04-16 13:11:30 -07:00
2023-04-05 06:51:32 -07:00
2022-11-19 20:32:45 -08:00
2023-04-16 13:44:04 -07:00
2023-02-26 22:11:38 -08:00
2023-04-27 08:14:36 -07:00
2023-04-22 08:26:19 -07:00
2023-04-22 09:17:38 -07:00
2023-06-02 08:57:34 -07:00
2023-04-28 21:25:33 -07:00
2023-05-24 01:24:58 -07:00
2023-04-22 08:26:19 -07:00