Add Sources to an Index
Add URLs to an Index
1 from reasoner import Reasoner 2 3 r = Reasoner(api_key=”foobar”) 4 index = r.indexes.get("your-index-uid") 5 r.indexes.add_urls(['https://reasoner.com'], index["uid"])
Add Files to an Index
1 from reasoner import Reasoner 2 3 r = Reasoner(api_key=”foobar”) 4 index = r.indexes.get("your-index-uid") 5 files_or_dirs = [list of Path] 6 r.indexes.add_documents(files_or_dirs, index["uid"])