Add RAG basic implementation

This commit is contained in:
2026-11-09 08:43:30 +03:00
parent 447464c16c
commit 7fa1d774a0
76 changed files with 3030 additions and 124 deletions
+2
View File
@@ -12,6 +12,8 @@ def create_schema(dsn: str) -> None:
engine = create_async_engine(normalize_dsn(dsn))
try:
async with engine.begin() as conn:
if conn.dialect.name == "postgresql":
await conn.exec_driver_sql("CREATE EXTENSION IF NOT EXISTS vector")
await conn.run_sync(Base.metadata.drop_all)
await conn.run_sync(Base.metadata.create_all)
finally: