refactor: Rename 'document' variable to 'text' in chroma_collection_to_records function
This commit is contained in:
parent
e719f1746f
commit
becdb49661
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ def chroma_collection_to_records(collection_dict: dict):
|
|||
for i, doc in enumerate(collection_dict["documents"]):
|
||||
record_dict = {
|
||||
"id": collection_dict["ids"][i],
|
||||
"document": doc,
|
||||
"text": doc,
|
||||
}
|
||||
if "metadatas" in collection_dict:
|
||||
for key, value in collection_dict["metadatas"][i].items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue