Skip to content

Commit

Permalink
Update 03_agent_proof_of_concept.py
Browse files Browse the repository at this point in the history
change back to ann by default
  • Loading branch information
epec254 authored Jan 24, 2025
1 parent 109ff1f commit e78a0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent_app_sample_code/03_agent_proof_of_concept.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
document_uri="doc_uri",
additional_metadata_columns=[],
),
parameters=RetrieverParametersConfig(num_results=5, query_type="hybrid"),
parameters=RetrieverParametersConfig(num_results=5, query_type="ann"),
vector_search_threshold=0.0, # Increase this to make the search more restrictive
chunk_template="Passage text: {chunk_text}\nPassage metadata: {metadata}\n\n",
prompt_template="""Use the following pieces of retrieved context to answer the question.\nOnly use the passages from context that are relevant to the query to answer the question, ignore the irrelevant passages. When responding, cite your source, referring to the passage by the columns in the passage's metadata.\n\nContext: {context}""",
Expand Down

0 comments on commit e78a0ed

Please sign in to comment.