mirror of
https://github.com/hwchase17/langchain.git
synced 2025-04-29 04:16:02 +00:00
remove extra run from merge conflict (#133)
This commit is contained in:
parent
11d37d556e
commit
ced29b816b
@ -62,19 +62,3 @@ class VectorDBQA(Chain, BaseModel):
|
|||||||
# TODO: handle cases where this context is too long.
|
# TODO: handle cases where this context is too long.
|
||||||
answer = llm_chain.predict(question=question, context="\n\n".join(contexts))
|
answer = llm_chain.predict(question=question, context="\n\n".join(contexts))
|
||||||
return {self.output_key: answer}
|
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…
Reference in New Issue
Block a user