chat()
method allows you to chat over your data sources using a user-friendly chat API. You can find the signature below:
False
None
default
False
citations=False
, return a stringified answer to the question asked. citations=True
, returns a tuple with answer and citations respectively.citations=True
, note that the returned sources
are a list of tuples where each tuple has two elements (in the following order):url
: url of the sourcedoc_id
: document id (used for book keeping purposes)score
: score of the source chunk with respect to the questionsession_id
keyword argument. See the example below:
mem0
package using pip install mem0ai
.memory
, refer Configurations.top_k
parameter in the memory configuration specifies the number of top memories to consider during retrieval.