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
- Host: GitHub
- URL: https://github.com/traceloop/llamaindex-demo
- Owner: traceloop
- License: apache-2.0
- Created: 2024-02-23T14:56:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T14:54:06.000Z (over 2 years ago)
- Last Synced: 2025-01-01T00:45:12.172Z (over 1 year ago)
- Language: Python
- Size: 515 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.