Skip to content

Commit

Permalink
Merge pull request #206 from eye-on-surveillance/AI/revise-prompt
Browse files Browse the repository at this point in the history
AI/revise-prompt
  • Loading branch information
ayyubibrahimi authored Jan 3, 2024
2 parents ec64a5f + 052f1fb commit b6b09f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/googlecloud/functions/getanswer/inquirer.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ def get_indepth_response_from_query(df, db, query, k):
docs = sort_retrived_documents(doc_list)

docs_page_content = append_metadata_to_content(docs)
print(docs_page_content)

template = """
Question: {question}
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.
If possible, extract the key points, decisions, and actions discussed during the city council meetings relevant to {question};
highlight any immediate shortcomings, mistakes, or negative actions by the city council relevant to {question};
Expand All @@ -235,10 +235,7 @@ def get_indepth_response_from_query(df, db, query, k):
Word: Definition
Please break the definitions onto new lines with
The final output should be in paragraph form without any formatting, such as prefixing your points with "a.", "b.", or "c."
The final output should be in paragraph form without any formatting, such as prefixing your points with "a.", "b.", or "c.", "1.", "2.", "3.",
The final output should not include any reference to the model's active sorting by date.
Documents: {docs}
Expand Down

0 comments on commit b6b09f8

Please sign in to comment.