Skip to content

Commit

Permalink
Merge pull request #135 from eye-on-surveillance/AI/yaml-file-for-clo…
Browse files Browse the repository at this point in the history
…ud-deployment

AI/yaml-file-for-cloud-deployment
  • Loading branch information
ayyubibrahimi authored Nov 8, 2023
2 parents cfb86c3 + 0d4970a commit 3d5d2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/googlecloud/functions/getanswer/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.chains import LLMChain, HypotheticalDocumentEmbedder
from langchain.prompts import PromptTemplate
from langchain.llms import OpenAI
from langchain.chat_models import ChatOpenAI
import logging
import pandas as pd

Expand Down Expand Up @@ -37,7 +37,7 @@ def get_dbs():


def create_embeddings():
llm = OpenAI()
llm = ChatOpenAI()

general_prompt_template = """
As an AI assistant tasked with generating brief general summaries, your role is to provide succinct, balanced information from the transcripts of New Orleans City Council meetings in response to the question "{question}". The response should not exceed one paragraph in length. If the available information from the transcripts is insufficient to accurately summarize the issue, please respond with 'Insufficient information available.' If the question extends beyond the scope of information contained in the transcripts, state 'I don't know.'
Expand Down

0 comments on commit 3d5d2ae

Please sign in to comment.