MCPcopy Create free account
hub / github.com/DVampire/FinAgent / similarity_search

Method similarity_search

finagent/memory/base.py:75–89  ·  view source on GitHub ↗

Retrieve the keys from the vectorstores. Args: data: the query data. top_k: the number of results to return. **kwargs: Other keyword arguments that subclasses might use. Returns: the corresponding values from the memory.

(
        self,
        *args: Any,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

73
74 @abc.abstractmethod
75 def similarity_search(
76 self,
77 *args: Any,
78 **kwargs: Any,
79 ) -> List[Union[str, Image]]:
80 """Retrieve the keys from the vectorstores.
81
82 Args:
83 data: the query data.
84 top_k: the number of results to return.
85 **kwargs: Other keyword arguments that subclasses might use.
86
87 Returns:
88 the corresponding values from the memory.
89 """
90
91 @abc.abstractmethod
92 def query(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected