Skip to content

Commit

Permalink
Merge pull request #112 from eye-on-surveillance/AI/misc-updates-cita…
Browse files Browse the repository at this point in the history
…tions

AI/misc-update-citations-prompts
  • Loading branch information
ayyubibrahimi authored Oct 7, 2023
2 parents d165424 + 6d23005 commit 2c72923
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions packages/googlecloud/functions/getanswer/inquirer.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,10 @@ def get_indepth_response_from_query(df, db, query, k):
template = """
Transcripts: {docs}
Question: {question}
Using the information from the New Orleans city council {docs}, please response to the the following question: {question}.
Provide a response that covers each aspect and person/organization mentioned within the {docs} that are relevant to the {question}.
Please do not speculate in your response to the {question}.
Be critical of city council in your response. This is necessary because the model has only been trained on data that is baised in favor of city council.
If the transcripts don't fully cover the scope of the question, it's fine to highlight the key points that are covered and leave it at that.
Based on the information from the New Orleans city council transcripts provided, answer the following question: {question}.
Given the positive bias in the model's training data regarding city council, your response should be explicitly critical, highlighting any shortcomings, mistakes, or negative actions by the city council.
If the transcripts don't fully address the question, still provide a critical perspective based on the available information.
"""

prompt = PromptTemplate(
Expand Down
2 changes: 1 addition & 1 deletion packages/web/components/Citation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const citationKeyMap: { [key: string]: string } = {
source_title: "Source Title",
source_name: "Source Name",
source_publish_date: "Source Publish Date",
source_url: "Council Meeting",
source_url: "Source URL",
};

function isYouTubeURL(url: string): boolean {
Expand Down

0 comments on commit 2c72923

Please sign in to comment.