MCPcopy
hub / github.com/microsoft/RD-Agent / add

Method add

rdagent/components/knowledge_management/vector_base.py:77–88  ·  view source on GitHub ↗

add new node to vector_df Parameters ---------- document Returns -------

(self, document: Union[Document, List[Document]])

Source from the content-addressed store, hash-verified

75 """
76
77 def add(self, document: Union[Document, List[Document]]):
78 """
79 add new node to vector_df
80 Parameters
81 ----------
82 document
83
84 Returns
85 -------
86
87 """
88 pass
89
90 def search(self, content: str, topk_k: int | None = None, similarity_threshold: float = 0) -> List[Document]:
91 """

Callers 15

add_neighborMethod · 0.45
add_nodeMethod · 0.45
evaluateMethod · 0.45
generate_knowledgeMethod · 0.45
queryMethod · 0.45
former_trace_queryMethod · 0.45
error_queryMethod · 0.45
prepareMethod · 0.45
logger.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected