Skip to content

Commit

Permalink
fix: deprecation err in langchain example
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer committed Jan 11, 2024
1 parent 446b4e9 commit 4a8ba3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 06_gpu_and_ml/langchains/potus_speech_qanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def qanda_langchain(query: str) -> tuple[str, list[str]]:
docs = docsearch.similarity_search(query)

chain = load_qa_with_sources_chain(
OpenAI(temperature=0), chain_type="stuff"
OpenAI(model_name="gpt-3.5-turbo-instruct", temperature=0), chain_type="stuff"
)
print("running query against Q&A chain.\n")
result = chain(
Expand Down

0 comments on commit 4a8ba3e

Please sign in to comment.