Files
LlamaIndexTS/examples/README.md
T

1.2 KiB

LlamaIndexTS Examples

This package contains several examples of how to use LlamaIndexTS.

Most examples will use OpenAI by default, so be sure to set your API key.

Running Examples

# export your API key
export OPENAI_API_KEY="sk-..."

npx tsx ./rag/chatEngine.ts

Agents:

Workflows:

Indexing, Retrieval, and Querying:

Multimodal:

Some more general folders that might be useful to explore:

  • storage: Examples with various vector stores
  • readers: Examples of how to use the various readers
  • models: Examples of how to use the various LLMs and embedding models from many providers