remove extra run from merge conflict (#133)

harrison/chain_pipeline
Harrison Chase 2 years ago committed by GitHub
parent 11d37d556e
commit ced29b816b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,19 +62,3 @@ class VectorDBQA(Chain, BaseModel):
# TODO: handle cases where this context is too long.
answer = llm_chain.predict(question=question, context="\n\n".join(contexts))
return {self.output_key: answer}
def run(self, question: str) -> str:
"""Run Question-Answering on a vector database.
Args:
question: Question to get the answer for.
Returns:
The final answer
Example:
.. code-block:: python
answer = vectordbqa.run("What is the capital of Idaho?")
"""
return self({self.input_key: question})[self.output_key]

Loading…
Cancel
Save