ReactAgent
work with unstructured text that I bring with documents = SimpleDirectoryReader(input_dir=docs_folder, recursive=True).load_data()
and then vectorise vector_store = ChromaVectorStore(chroma_collection=chroma_collection)
storage_context = StorageContext.from_defaults(vector_store=vector_store)
try:
index = VectorStoreIndex.from_vector_store(vector_store, storage_context=storage_context)
index_loaded = True
except:
index_loaded = False
if not index_loaded:
index = VectorStoreIndex.from_documents(documents, storage_context=storage_context)
index.storage_context.persist()
query_engine = index.as_query_engine(similarity_top_k=5)
ReActAgent
with ollma models?