Vector db qa

LangChain Hub prompt for Vector db qa

Views0
PublishedJan 12, 2026

Loading actions...

5 minBeginnerpromptSingle file

Skill content

Main instructions and any bundled files for this skill.

markdown

Vector db qa

Description of Vector DB Question Answering Prompt

Prompts to be used in vector DB question answering chains.

Inputs

This is a description of the inputs that the prompt expects.

  1. context: Documents pulled from the DB to do question answering over.
  2. question: Question to ask of the documents.

Usage

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)
Contents
Share: