Решение готово к публикации: update main.py
This commit is contained in:
@@ -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