Skip to content

Commit

Permalink
edit: revised prompt to warn model about bias in vector db
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyubibrahimi committed Jan 3, 2024
1 parent adb0a2e commit b57a635
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/googlecloud/functions/getanswer/inquirer.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ def get_indepth_response_from_query(df, db, query, k):
template = """
Question: {question}
### Bias Guidelines:
Please be aware of inherent biases within the document corpus, especially an overrepresentation of certain types of documents, such as those about surveillance. These biases may result in the retrieval of documents that are irrelevant to the question. When analyzing documents to answer the question, it is crucial to critically evaluate their relevance to the question at hand.
To ensure accuracy and relevance in your analysis you must identify and disregard irrelevant documents by actively identifying documents that, despite being returned by the database, do not substantively address the query. Such documents should be disregarded in the analysis.
### Response Guidelines:
Based on the information from the New Orleans city council documents provided, answer the following question: {question}.
Your answer must not exceed 5,000 tokens.
Expand Down

0 comments on commit b57a635

Please sign in to comment.