An open API service indexing awesome lists of open source software.

https://github.com/traceloop/llamaindex-demo

A small demo of LlamaIndex app with OpenLLMetry tracing
https://github.com/traceloop/llamaindex-demo

Last synced: 3 months ago
JSON representation

A small demo of LlamaIndex app with OpenLLMetry tracing

Awesome Lists containing this project

README

          

## LLamaIndex + OpenLLMetry observability demo

1. Install:

```python
poetry install
```

2. Set up the environment:

```python
export OPENAI_API_KEY=
export COHERE_API_KEY=
export TRACELOOP_API_KEY=
```

You can connect OpenLLMetry to other platform by following one of the guides [here](https://www.traceloop.com/docs/openllmetry/integrations/introduction).

3. Run any of the demos like this:

```python
poetry run streamlit run llamaindex-demo/.py
```

Demos:

1. `poetry run streamlit run llamaindex-demo/chat.py` - An interactive chat allowing you to ask questions about Paul Graham's indexed essays.

2. `poetry run streamlit run llamaindex-demo/query-rewriting.py` - Demonstrating multi-step RAG pipeline with query rewriting and re-ranking.

3. `poetry run streamlit run llamaindex-demo/agent.py` - Demonstrating an autonomous agent with LlamaIndex.