Skip to content

Commit

Permalink
changing the return to k=1 form rag
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiksoman committed Sep 24, 2024
1 parent 12a21f7 commit f781ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda-pipeline/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_model_response(input_text, temperature: float = 0.7):
logging.error(f"Failed to get model response: {str(e)}")
return None

def get_rag_context(query, top_k=2):
def get_rag_context(query, top_k=1):
try:
embed_model = OpenAIEmbedding(
model='text-embedding-ada-002',
Expand Down

0 comments on commit f781ac0

Please sign in to comment.