We have positional indexing for a while now
This commit is contained in:
parent
48cdb8a1db
commit
ff5d4f7b60
2 changed files with 0 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue