Split documents and create vector store.
(self, documents: List[Document])
| 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 | |
| 144 | class KnowledgeGraph: |
| 145 | """Builds and manages a knowledge graph from document chunks.""" |
nothing calls this directly
no outgoing calls
no test coverage detected