Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Index
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Llama Index
Commits
24233940
Unverified
Commit
24233940
authored
1 year ago
by
Daniele
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
docs: add missing import in rag cli examples (#11506)
parent
288f4df4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/use_cases/q_and_a/rag_cli.md
+2
-0
2 additions, 0 deletions
docs/use_cases/q_and_a/rag_cli.md
with
2 additions
and
0 deletions
docs/use_cases/q_and_a/rag_cli.md
+
2
−
0
View file @
24233940
...
@@ -112,6 +112,8 @@ import os
...
@@ -112,6 +112,8 @@ import os
from
llama_index.core.ingestion
import
IngestionPipeline
,
IngestionCache
from
llama_index.core.ingestion
import
IngestionPipeline
,
IngestionCache
from
llama_index.core.query_pipeline
import
QueryPipeline
from
llama_index.core.query_pipeline
import
QueryPipeline
from
llama_index.core.storage.docstore
import
SimpleDocumentStore
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)
# optional, set any API keys your script may need (perhaps using python-dotenv library instead)
os
.
environ
[
"
OPENAI_API_KEY
"
]
=
"
sk-xxx
"
os
.
environ
[
"
OPENAI_API_KEY
"
]
=
"
sk-xxx
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment