From 63d3f65055acb766d4a4ad47d3ef8279977143d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=92=D0=B8=D0=BA?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=BE=D0=B2?= Date: Thu, 2 Jul 2026 09:38:04 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20init=5Fdb.py=20=E2=80=94=20=D0=AD=D0=BA?= =?UTF-8?q?=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD:=20RAG-=D0=B0=D0=B3=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=20=D1=81=20ChromaDB=20=D0=B8=20=D0=B2=D0=B5=D0=B1-=D0=BF?= =?UTF-8?q?=D0=BE=D0=B8=D1=81=D0=BA=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init_db.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 init_db.py diff --git a/init_db.py b/init_db.py new file mode 100644 index 0000000..72a07b6 --- /dev/null +++ b/init_db.py @@ -0,0 +1,10 @@ +import os +from vectorstore import create_vectorstore, load_documents + +def main(): + vectorstore = create_vectorstore() + load_documents("./documents", vectorstore) + print("Документы загружены в ChromaDB.") + +if __name__ == "__main__": + main() \ No newline at end of file