MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / process_documents

Method process_documents

methods/graph_rag.py:138–142  ·  view source on GitHub ↗

Split documents and create vector store.

(self, documents: List[Document])

Source from the content-addressed store, hash-verified

136 self.vector_store = None
137
138 def process_documents(self, documents: List[Document]) -> Tuple[List, Any]:
139 """Split documents and create vector store."""
140 splits = self.text_splitter.split_documents(documents)
141 self.vector_store = FAISS.from_documents(splits, self.embeddings)
142 return splits, self.vector_store
143
144class KnowledgeGraph:
145 """Builds and manages a knowledge graph from document chunks."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected