Skip to content

Commit

Permalink
fix: deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Nov 8, 2023
1 parent 8570d90 commit 7ec4ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/answering.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from langchain.llms import OpenAI
from langchain.prompts import PromptTemplate
from langchain.chains import VectorDBQAWithSourcesChain
from langchain.chains import RetrievalQAWithSourcesChain

from web.config import get_embedding_fn, db_dir
from web.vector_store import FaissMap
Expand All @@ -22,7 +22,7 @@ def generate_answer(question: str, collection=None):
llm = OpenAI(temperature=0.1, max_tokens=512)

# chain = LLMChain(llm=llm, prompt=PROMPT)
chain = VectorDBQAWithSourcesChain.from_chain_type(
chain = RetrievalQAWithSourcesChain.from_chain_type(
llm, chain_type="map_reduce", vectorstore=search_index
)

Expand Down

0 comments on commit 7ec4ded

Please sign in to comment.