Zack Saadioui
8/26/2024
1
2
bash
pip install llama-index agentic-rag
1
2
3
4
python
from llama_index import SimpleDirectoryReader, VectorStoreIndex
input_data = SimpleDirectoryReader('./data').load_data()
index = VectorStoreIndex.from_documents(input_data)
1
2
3
4
5
6
python
from agentic_rag import AgenticSystem
agent_system = AgenticSystem(index)
question = 'What are the latest advancements in AI?'
response = agent_system.answer(question)
print(response)
Copyright © Arsturn 2024