From 2423394077ac15f5587e89f8ddb9f51641a8d068 Mon Sep 17 00:00:00 2001 From: Daniele Date: Thu, 29 Feb 2024 16:59:19 +0100 Subject: [PATCH] docs: add missing import in rag cli examples (#11506) --- docs/use_cases/q_and_a/rag_cli.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/use_cases/q_and_a/rag_cli.md b/docs/use_cases/q_and_a/rag_cli.md index 040eb93166ef6..06da5db3aaa3f 100644 --- a/docs/use_cases/q_and_a/rag_cli.md +++ b/docs/use_cases/q_and_a/rag_cli.md @@ -112,6 +112,8 @@ import os from llama_index.core.ingestion import IngestionPipeline, IngestionCache from llama_index.core.query_pipeline import QueryPipeline from llama_index.core.storage.docstore import SimpleDocumentStore +from llama_index.cli.rag import RagCLI + # optional, set any API keys your script may need (perhaps using python-dotenv library instead) os.environ["OPENAI_API_KEY"] = "sk-xxx"