fix: vector search formatting, surrealdb bug

This commit is contained in:
Per Stark
2025-05-16 23:42:03 +02:00
parent f5a57f90a0
commit aba3c37fc8
7 changed files with 18 additions and 8 deletions

View File

@@ -78,7 +78,11 @@ impl SurrealDbClient {
pub async fn rebuild_indexes(&self) -> Result<(), Error> {
self.client
.query("REBUILD INDEX IF EXISTS idx_embedding_chunks ON text_chunk")
.query("REBUILD INDEX IF EXISTS idx_embeddings_entities ON knowledge_entity")
.await?;
self.client
.query("REBUILD INDEX IF EXISTS idx_embedding_entities ON knowledge_entity")
.await?;
self.client
.query("REBUILD INDEX IF EXISTS text_content_fts_idx ON text_content")
.await?;
Ok(())