| name | multimodal_rag |
| description | Private knowledge base for indexing multimodal files or folders into a knowledge graph, supporting multi-hop graph retrieval |
Index all files under a directory into the rag-anything graph:
import asyncio
from skills.builtin.core.multimodal_rag.scripts import folder_index, file_index
if __name__ == "__main__":
_classify_folder: str = "{placeholder}"
_input_folder_path: str = "{placeholder}"
coro = folder_index(_input_folder_path, _classify_folder)
res = asyncio.run(coro)
print(res)
Query the rag-anything knowledge graph:
import asyncio
from skills.builtin.core.multimodal_rag.scripts import query
if __name__ == "__main__":
_query: str = "{placeholder}"
res = asyncio.run(query(_query))
print(res)