feat: fix Circleback connector and update related enums

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-12-30 12:13:18 -08:00
parent c19d300c9d
commit 476c764611
5 changed files with 123 additions and 31 deletions

View file

@ -497,6 +497,16 @@ async def search_knowledge_base_async(
)
all_documents.extend(chunks)
elif connector == "CIRCLEBACK":
_, chunks = await connector_service.search_circleback(
user_query=query,
search_space_id=search_space_id,
top_k=top_k,
start_date=resolved_start_date,
end_date=resolved_end_date,
)
all_documents.extend(chunks)
except Exception as e:
print(f"Error searching connector {connector}: {e}")
continue
@ -583,6 +593,7 @@ def create_search_knowledge_base_tool(
- LUMA_CONNECTOR: "Luma events"
- WEBCRAWLER_CONNECTOR: "Webpages indexed by SurfSense" (personally selected websites)
- BOOKSTACK_CONNECTOR: "BookStack pages" (personal documentation)
- CIRCLEBACK: "Circleback meeting notes, transcripts, and action items" (personal meeting records)
NOTE: `WEBCRAWLER_CONNECTOR` is mapped internally to the canonical document type `CRAWLED_URL`.