10BC0 LightRAG Instance · HKUDS RAG-Anything · Discussion #123 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

🚀 Great question! RAG-Anything and LightRAG can work together seamlessly. Here's how to access your processed data through the LightRAG interface:

🔧 Method 1: Direct Instance Access

After processing documents with RAG-Anything, you can access the underlying LightRAG instance:

from raganything import RAGAnything, RAGAnythingConfig

# Initialize RAG-Anything
config = RAGAnythingConfig(working_dir="./rag_storage")
rag = RAGAnything(config=config, llm_model_func=your_llm, embedding_func=your_embedding)

# Process your documents
await rag.process_document_complete(
    file_path="document.pdf",
    output_dir="./output"
)

# Access the LightRAG instance directly
lightrag_instance = rag.lightrag

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by baartho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0