General
PromptBeginner5 minmarkdown
Untitled Skill
193
LangChain Hub prompt for Vector db qa
Loading actions...
Main instructions and any bundled files for this skill.
Prompts to be used in vector DB question answering chains.
This is a description of the inputs that the prompt expects.
context: Documents pulled from the DB to do question answering over.question: Question to ask of the documents.Below is a code snippet for how to use the prompt.
from langchain.prompts import load_prompt
from langchain.chains import VectorDBQA
llm = ...
vectorstore = ...
prompt = load_prompt('lc://prompts/vector_db_qa/<file-name>')
chain = VectorDBQA.from_llm(llm, prompt=prompt, vectorstore=vectorstore)
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend li...
risks