Skip to content

Commit

Permalink
fix: deprecation err in langchain example (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer authored Jan 11, 2024
1 parent 446b4e9 commit bbfc0a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 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,8 @@ 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 bbfc0a0

Please sign in to comment.