From ced29b816bc0b1331dc896d26339030ddec3f44a Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Sun, 13 Nov 2022 21:07:20 -0800 Subject: [PATCH] remove extra run from merge conflict (#133) --- langchain/chains/vector_db_qa/base.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/langchain/chains/vector_db_qa/base.py b/langchain/chains/vector_db_qa/base.py index a87ca2e48d..3e01071057 100644 --- a/langchain/chains/vector_db_qa/base.py +++ b/langchain/chains/vector_db_qa/base.py @@ -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]