Решение готово к публикации: update main.py
This commit is contained in:
1 parent
65494e9c36
commit
0d3f988ab4
1 file changed
+2
-2
@@ -7,8 +7,8 @@ from vectorstore import create_vectorstore, load_documents
|
|||||||
|
|
||||||
|
|
||||||
def ingest_documents(directory: str) -> None:
|
def ingest_documents(directory: str) -> None:
|
||||||
vectorstore = create_vectorstore()
|
collection = create_vectorstore()
|
||||||
chunk_count = load_documents(directory, vectorstore)
|
chunk_count = load_documents(directory, collection)
|
||||||
print(f"Loaded {chunk_count} chunks from {directory} into ChromaDB.")
|
print(f"Loaded {chunk_count} chunks from {directory} into ChromaDB.")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user