Skip to content
Snippets Groups Projects
user avatar
Marcus Schiesser authored
2486bd8f
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name Last commit Last update
..
README.md
chat.ts
from-documents.ts
query.ts

LlamaCloud Integration

Getting started

To start the examples call them from the examples folder:

And make sure, you're setting your LLAMA_CLOUD_API_KEY in your environment variable:

export LLAMA_CLOUD_API_KEY=your-api-key

For using another environment, also set the LLAMA_CLOUD_BASE_URL environment variable:

export LLAMA_CLOUD_BASE_URL="https://api.staging.llamaindex.ai"

Chat Engine

This example is using the managed index named test from the project default to create a chat engine.

pnpx tsx cloud/chat.ts

Query Engine

This example shows how to use the managed index with a query engine.

pnpx tsx cloud/query.ts

Pipeline

This example shows how to create a managed index with a pipeline.

pnpx tsx cloud/pipeline.ts