Daniel Foley commited on
Commit
1ba93a0
·
1 Parent(s): 26a5c64

Added query alignment

Browse files
Files changed (1) hide show
  1. RAG.py +1 -1
RAG.py CHANGED
@@ -161,7 +161,7 @@ def RAG(llm: Any, query: str, index_name: str, embeddings: Any, top: int = 10, k
161
  context = "\n\n".join(doc.page_content for doc in reranked[:top] if doc.page_content)
162
  if not context.strip():
163
  return "No relevant content found in the documents.", []
164
-
165
  # Prepare prompt
166
  answer_template = PromptTemplate.from_template(
167
  """Pretend you are a professional librarian. Please Summarize The Following Context as though you had retrieved it for a patron:
 
161
  context = "\n\n".join(doc.page_content for doc in reranked[:top] if doc.page_content)
162
  if not context.strip():
163
  return "No relevant content found in the documents.", []
164
+ # change for the sake of another commit
165
  # Prepare prompt
166
  answer_template = PromptTemplate.from_template(
167
  """Pretend you are a professional librarian. Please Summarize The Following Context as though you had retrieved it for a patron: