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

Method query

finagent/memory/base.py:92–106  ·  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

90
91 @abc.abstractmethod
92 def query(
93 self,
94 *args: Any,
95 **kwargs: Any,
96 ) -> List[Union[str, Image]]:
97 """Retrieve the keys from the vectorstores.
98
99 Args:
100 data: the query data.
101 top_k: the number of results to return.
102 **kwargs: Other keyword arguments that subclasses might use.
103
104 Returns:
105 the corresponding values from the memory.
106 """

Calls

no outgoing calls

Tested by

no test coverage detected