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

Method __init__

methods/graph_rag.py:129–136  ·  view source on GitHub ↗
(self, embedding_model: str = None, chunk_size: int = DEFAULT_CHUNK_SIZE,
                 chunk_overlap: int = DEFAULT_CHUNK_OVERLAP)

Source from the content-addressed store, hash-verified

127 """Processes documents into chunks and creates embeddings."""
128
129 def __init__(self, embedding_model: str = None, chunk_size: int = DEFAULT_CHUNK_SIZE,
130 chunk_overlap: int = DEFAULT_CHUNK_OVERLAP):
131 self.text_splitter = RecursiveCharacterTextSplitter(
132 chunk_size=chunk_size,
133 chunk_overlap=chunk_overlap
134 )
135 self.embeddings = _get_embeddings(embedding_model)
136 self.vector_store = None
137
138 def process_documents(self, documents: List[Document]) -> Tuple[List, Any]:
139 """Split documents and create vector store."""

Callers

nothing calls this directly

Calls 1

_get_embeddingsFunction · 0.70

Tested by

no test coverage detected