.ipynb
.pdf
Generate Examples
Generate Examples#
This notebook shows how to use LangChain to generate more examples similar to the ones you already have.
from langchain.llms.openai import OpenAI
from langchain.example_generator import generate_example
from langchain.prompts import PromptTemplate
# Use examples from ReAct
examples = [
  {
    "question": "What is the elevation range for the area that the eastern sector of the Colorado orogeny extends into?",