We have positional indexing for a while now

This commit is contained in:
Yiorgis Gozadinos 2025-10-09 17:52:35 +03:00
parent 48cdb8a1db
commit ff5d4f7b60
No known key found for this signature in database
2 changed files with 0 additions and 5 deletions

View file

@ -262,8 +262,6 @@ def create_a2a_app(db_path: Path):
Returns chunks of text with their relevance scores and document URIs.
Use get_full_document if you need to see the complete document content.
"""
# Remove quotes from queries as this requires positional indexing in lancedb
query = query.replace('"', "")
search_results = await ctx.deps.client.search(query, limit=limit)
expanded_results = await ctx.deps.client.expand_context(search_results)

View file

@ -54,9 +54,6 @@ class QuestionAnswerAgent:
limit: int = 3,
) -> list[SearchResult]:
"""Search the knowledge base for relevant documents."""
# Remove quotes from queries as this requires positional indexing in lancedb
query = query.replace('"', "")
search_results = await ctx.deps.client.search(query, limit=limit)
expanded_results = await ctx.deps.client.expand_context(search_results)