Skip to content
Snippets Groups Projects
user avatar
Emanuel Ferreira authored
Co-authored-by: default avatarAlex Yang <himself65@outlook.com>
4bb401e6
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 ts-node cloud/chat.ts

Query Engine

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

pnpx ts-node cloud/query.ts

Pipeline

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

pnpx ts-node cloud/pipeline.ts