SYMBOL INDEX (4378 symbols across 729 files) FILE: cookbooks/helper/mem0_teachability.py class Mem0Teachability (line 19) | class Mem0Teachability(AgentCapability): method __init__ (line 20) | def __init__( method add_to_agent (line 42) | def add_to_agent(self, agent: ConversableAgent): method process_last_received_message (line 57) | def process_last_received_message(self, text: Union[Dict, str]): method _consider_memo_storage (line 64) | def _consider_memo_storage(self, comment: Union[Dict, str]): method _consider_memo_retrieval (line 114) | def _consider_memo_retrieval(self, comment: Union[Dict, str]): method _retrieve_relevant_memos (line 141) | def _retrieve_relevant_memos(self, input_text: str) -> list: method _concatenate_memo_texts (line 153) | def _concatenate_memo_texts(self, memo_list: list) -> str: method _analyze (line 164) | def _analyze(self, text_to_analyze: Union[Dict, str], analysis_instruc... FILE: embedchain/embedchain/app.py class App (line 48) | class App(EmbedChain): method __init__ (line 55) | def __init__( method _init_db (line 147) | def _init_db(self): method _init_cache (line 155) | def _init_cache(self): method _init_client (line 172) | def _init_client(self): method _get_pipeline (line 185) | def _get_pipeline(self, id): method _create_pipeline (line 203) | def _create_pipeline(self): method _get_presigned_url (line 233) | def _get_presigned_url(self, data_type, data_value): method _upload_file_to_presigned_url (line 243) | def _upload_file_to_presigned_url(self, presigned_url, file_path): method _upload_data_to_pipeline (line 254) | def _upload_data_to_pipeline(self, data_type, data_value, metadata=None): method _send_api_request (line 268) | def _send_api_request(self, endpoint, payload): method _process_and_upload_data (line 275) | def _process_and_upload_data(self, data_hash, data_type, data_value): method _mark_data_as_uploaded (line 299) | def _mark_data_as_uploaded(self, data_hash): method get_data_sources (line 302) | def get_data_sources(self): method deploy (line 309) | def deploy(self): method from_config (line 327) | def from_config( method _eval (line 419) | def _eval(self, dataset: list[EvalData], metric: Union[BaseMetric, str]): method evaluate (line 439) | def evaluate( FILE: embedchain/embedchain/bots/base.py class BaseBot (line 15) | class BaseBot(JSONSerializable): method __init__ (line 16) | def __init__(self): method add (line 19) | def add(self, data: Any, config: AddConfig = None): method query (line 32) | def query(self, query: str, config: BaseLlmConfig = None) -> str: method start (line 46) | def start(self): FILE: embedchain/embedchain/bots/discord.py class DiscordBot (line 31) | class DiscordBot(BaseBot): method __init__ (line 32) | def __init__(self, *args, **kwargs): method add_data (line 35) | def add_data(self, message): method ask_bot (line 45) | def ask_bot(self, message): method start (line 53) | def start(self): function query_command (line 61) | async def query_command(interaction: discord.Interaction, question: str): function add_command (line 78) | async def add_command(interaction: discord.Interaction, url_or_text: str): function ping (line 91) | async def ping(interaction: discord.Interaction): function on_app_command_error (line 96) | async def on_app_command_error(interaction: discord.Interaction, error: ... function on_ready (line 104) | async def on_ready(): function start_command (line 112) | def start_command(): FILE: embedchain/embedchain/bots/poe.py function start_command (line 18) | def start_command(): class PoeBot (line 38) | class PoeBot(BaseBot, PoeBot): method __init__ (line 39) | def __init__(self): method get_response (line 43) | async def get_response(self, query): method handle_message (line 56) | def handle_message(self, message, history: Optional[list[str]] = None): method ask_bot (line 73) | def ask_bot(self, message, history: list[str]): method start (line 82) | def start(self): FILE: embedchain/embedchain/bots/slack.py class SlackBot (line 28) | class SlackBot(BaseBot): method __init__ (line 29) | def __init__(self): method handle_message (line 35) | def handle_message(self, event_data): method send_slack_message (line 65) | def send_slack_message(self, channel, message): method start (line 69) | def start(self, host="0.0.0.0", port=5000, debug=True): function start_command (line 90) | def start_command(): FILE: embedchain/embedchain/bots/whatsapp.py class WhatsAppBot (line 15) | class WhatsAppBot(BaseBot): method __init__ (line 16) | def __init__(self): method handle_message (line 27) | def handle_message(self, message): method add_data (line 34) | def add_data(self, message): method ask_bot (line 44) | def ask_bot(self, message): method start (line 52) | def start(self, host="0.0.0.0", port=5000, debug=True): function start_command (line 72) | def start_command(): FILE: embedchain/embedchain/cache.py function gptcache_pre_function (line 22) | def gptcache_pre_function(data: dict[str, Any], **params: dict[str, Any]): function gptcache_data_manager (line 26) | def gptcache_data_manager(vector_dimension): function gptcache_data_convert (line 30) | def gptcache_data_convert(cache_data): function gptcache_update_cache_callback (line 35) | def gptcache_update_cache_callback(llm_data, update_cache_func, *args, *... function _gptcache_session_hit_func (line 41) | def _gptcache_session_hit_func(cur_session_id: str, cache_session_ids: l... function get_gptcache_session (line 45) | def get_gptcache_session(session_id: str): FILE: embedchain/embedchain/chunkers/audio.py class AudioChunker (line 11) | class AudioChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/base_chunker.py class BaseChunker (line 12) | class BaseChunker(JSONSerializable): method __init__ (line 13) | def __init__(self, text_splitter): method create_chunks (line 18) | def create_chunks( method get_chunks (line 76) | def get_chunks(self, content): method set_data_type (line 84) | def set_data_type(self, data_type: DataType): method get_word_count (line 93) | def get_word_count(documents) -> int: FILE: embedchain/embedchain/chunkers/beehiiv.py class BeehiivChunker (line 11) | class BeehiivChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/common_chunker.py class CommonChunker (line 11) | class CommonChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/discourse.py class DiscourseChunker (line 11) | class DiscourseChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/docs_site.py class DocsSiteChunker (line 11) | class DocsSiteChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/docx_file.py class DocxFileChunker (line 11) | class DocxFileChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/excel_file.py class ExcelFileChunker (line 11) | class ExcelFileChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/gmail.py class GmailChunker (line 11) | class GmailChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/google_drive.py class GoogleDriveChunker (line 11) | class GoogleDriveChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/image.py class ImageChunker (line 11) | class ImageChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/json.py class JSONChunker (line 11) | class JSONChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/mdx.py class MdxChunker (line 11) | class MdxChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/mysql.py class MySQLChunker (line 11) | class MySQLChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/notion.py class NotionChunker (line 11) | class NotionChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/openapi.py class OpenAPIChunker (line 9) | class OpenAPIChunker(BaseChunker): method __init__ (line 10) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/pdf_file.py class PdfFileChunker (line 11) | class PdfFileChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/postgres.py class PostgresChunker (line 11) | class PostgresChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/qna_pair.py class QnaPairChunker (line 11) | class QnaPairChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/rss_feed.py class RSSFeedChunker (line 11) | class RSSFeedChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/sitemap.py class SitemapChunker (line 11) | class SitemapChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/slack.py class SlackChunker (line 11) | class SlackChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/substack.py class SubstackChunker (line 11) | class SubstackChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/table.py class TableChunker (line 9) | class TableChunker(BaseChunker): method __init__ (line 12) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/text.py class TextChunker (line 11) | class TextChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/unstructured_file.py class UnstructuredFileChunker (line 11) | class UnstructuredFileChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/web_page.py class WebPageChunker (line 11) | class WebPageChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/xml.py class XmlChunker (line 11) | class XmlChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/chunkers/youtube_video.py class YoutubeVideoChunker (line 11) | class YoutubeVideoChunker(BaseChunker): method __init__ (line 14) | def __init__(self, config: Optional[ChunkerConfig] = None): FILE: embedchain/embedchain/cli.py function signal_handler (line 40) | def signal_handler(sig, frame): function cli (line 54) | def cli(): function create_app (line 62) | def create_app(ctx, app_name, docker): function install_reqs (line 117) | def install_reqs(): function start (line 142) | def start(docker): function create (line 187) | def create(template, extra_args): function run_dev_fly_io (line 219) | def run_dev_fly_io(debug, host, port): function run_dev_modal_com (line 236) | def run_dev_modal_com(): function run_dev_streamlit_io (line 247) | def run_dev_streamlit_io(): function run_dev_render_com (line 258) | def run_dev_render_com(debug, host, port): function run_dev_gradio (line 275) | def run_dev_gradio(): function dev (line 290) | def dev(debug, host, port): function deploy (line 312) | def deploy(): FILE: embedchain/embedchain/client.py class Client (line 13) | class Client: method __init__ (line 14) | def __init__(self, api_key=None, host="https://apiv2.embedchain.ai"): method setup (line 36) | def setup(cls): method load_config (line 57) | def load_config(cls): method save (line 64) | def save(self): method clear (line 71) | def clear(self): method update (line 81) | def update(self, api_key): method check (line 89) | def check(self, api_key): method get (line 99) | def get(self): method __str__ (line 102) | def __str__(self): FILE: embedchain/embedchain/config/add_config.py class ChunkerConfig (line 12) | class ChunkerConfig(BaseConfig): method __init__ (line 17) | def __init__( method load_func (line 40) | def load_func(dotpath: str): class LoaderConfig (line 50) | class LoaderConfig(BaseConfig): method __init__ (line 55) | def __init__(self): class AddConfig (line 60) | class AddConfig(BaseConfig): method __init__ (line 65) | def __init__( FILE: embedchain/embedchain/config/app_config.py class AppConfig (line 9) | class AppConfig(BaseAppConfig): method __init__ (line 14) | def __init__( FILE: embedchain/embedchain/config/base_app_config.py class BaseAppConfig (line 11) | class BaseAppConfig(BaseConfig, JSONSerializable): method __init__ (line 16) | def __init__( method _setup_logging (line 56) | def _setup_logging(self, log_level): FILE: embedchain/embedchain/config/base_config.py class BaseConfig (line 6) | class BaseConfig(JSONSerializable): method __init__ (line 11) | def __init__(self): method as_dict (line 15) | def as_dict(self) -> dict[str, Any]: FILE: embedchain/embedchain/config/cache_config.py class CacheSimilarityEvalConfig (line 8) | class CacheSimilarityEvalConfig(BaseConfig): method __init__ (line 22) | def __init__( method from_config (line 33) | def from_config(config: Optional[dict[str, Any]]): class CacheInitConfig (line 45) | class CacheInitConfig(BaseConfig): method __init__ (line 56) | def __init__( method from_config (line 68) | def from_config(config: Optional[dict[str, Any]]): class CacheConfig (line 79) | class CacheConfig(BaseConfig): method __init__ (line 80) | def __init__( method from_config (line 89) | def from_config(config: Optional[dict[str, Any]]): FILE: embedchain/embedchain/config/embedder/aws_bedrock.py class AWSBedrockEmbedderConfig (line 8) | class AWSBedrockEmbedderConfig(BaseEmbedderConfig): method __init__ (line 9) | def __init__( FILE: embedchain/embedchain/config/embedder/base.py class BaseEmbedderConfig (line 9) | class BaseEmbedderConfig: method __init__ (line 10) | def __init__( FILE: embedchain/embedchain/config/embedder/google.py class GoogleAIEmbedderConfig (line 8) | class GoogleAIEmbedderConfig(BaseEmbedderConfig): method __init__ (line 9) | def __init__( FILE: embedchain/embedchain/config/embedder/ollama.py class OllamaEmbedderConfig (line 8) | class OllamaEmbedderConfig(BaseEmbedderConfig): method __init__ (line 9) | def __init__( FILE: embedchain/embedchain/config/evaluation/base.py class GroundednessConfig (line 51) | class GroundednessConfig(BaseConfig): method __init__ (line 52) | def __init__( class AnswerRelevanceConfig (line 65) | class AnswerRelevanceConfig(BaseConfig): method __init__ (line 66) | def __init__( class ContextRelevanceConfig (line 81) | class ContextRelevanceConfig(BaseConfig): method __init__ (line 82) | def __init__( FILE: embedchain/embedchain/config/llm/base.py class BaseLlmConfig (line 111) | class BaseLlmConfig(BaseConfig): method __init__ (line 116) | def __init__( method validate_prompt (line 255) | def validate_prompt(prompt: Template) -> Optional[re.Match[str]]: method _validate_prompt_history (line 267) | def _validate_prompt_history(prompt: Template) -> Optional[re.Match[st... FILE: embedchain/embedchain/config/mem0_config.py class Mem0Config (line 8) | class Mem0Config(BaseConfig): method __init__ (line 9) | def __init__(self, api_key: str, top_k: Optional[int] = 10): method from_config (line 14) | def from_config(config: Optional[dict[str, Any]]): FILE: embedchain/embedchain/config/vector_db/base.py class BaseVectorDbConfig (line 6) | class BaseVectorDbConfig(BaseConfig): method __init__ (line 7) | def __init__( FILE: embedchain/embedchain/config/vector_db/chroma.py class ChromaDbConfig (line 8) | class ChromaDbConfig(BaseVectorDbConfig): method __init__ (line 9) | def __init__( FILE: embedchain/embedchain/config/vector_db/elasticsearch.py class ElasticsearchDBConfig (line 9) | class ElasticsearchDBConfig(BaseVectorDbConfig): method __init__ (line 10) | def __init__( FILE: embedchain/embedchain/config/vector_db/lancedb.py class LanceDBConfig (line 8) | class LanceDBConfig(BaseVectorDbConfig): method __init__ (line 9) | def __init__( FILE: embedchain/embedchain/config/vector_db/opensearch.py class OpenSearchDBConfig (line 8) | class OpenSearchDBConfig(BaseVectorDbConfig): method __init__ (line 9) | def __init__( FILE: embedchain/embedchain/config/vector_db/pinecone.py class PineconeDBConfig (line 9) | class PineconeDBConfig(BaseVectorDbConfig): method __init__ (line 10) | def __init__( FILE: embedchain/embedchain/config/vector_db/qdrant.py class QdrantDBConfig (line 8) | class QdrantDBConfig(BaseVectorDbConfig): method __init__ (line 14) | def __init__( FILE: embedchain/embedchain/config/vector_db/weaviate.py class WeaviateDBConfig (line 8) | class WeaviateDBConfig(BaseVectorDbConfig): method __init__ (line 9) | def __init__( FILE: embedchain/embedchain/config/vector_db/zilliz.py class ZillizDBConfig (line 9) | class ZillizDBConfig(BaseVectorDbConfig): method __init__ (line 10) | def __init__( FILE: embedchain/embedchain/data_formatter/data_formatter.py class DataFormatter (line 12) | class DataFormatter(JSONSerializable): method __init__ (line 19) | def __init__( method _lazy_load (line 38) | def _lazy_load(module_path: str): method _get_loader (line 43) | def _get_loader( method _get_chunker (line 107) | def _get_chunker(self, data_type: DataType, config: ChunkerConfig, chu... FILE: embedchain/embedchain/deployment/fly.io/app.py class SourceModel (line 13) | class SourceModel(BaseModel): class QuestionModel (line 17) | class QuestionModel(BaseModel): function add_source (line 22) | async def add_source(source_model: SourceModel): function handle_query (line 33) | async def handle_query(question_model: QuestionModel): function handle_chat (line 44) | async def handle_chat(question_model: QuestionModel): function root (line 55) | async def root(): FILE: embedchain/embedchain/deployment/gradio.app/app.py function query (line 12) | def query(message, history): FILE: embedchain/embedchain/deployment/modal.com/app.py function add (line 36) | async def add( function query (line 55) | async def query(question: str = Body(..., description="Question to be an... function chat (line 67) | async def chat(question: str = Body(..., description="Question to be ans... function root (line 79) | async def root(): function fastapi_app (line 85) | def fastapi_app(): FILE: embedchain/embedchain/deployment/render.com/app.py class SourceModel (line 10) | class SourceModel(BaseModel): class QuestionModel (line 14) | class QuestionModel(BaseModel): function add_source (line 19) | async def add_source(source_model: SourceModel): function handle_query (line 30) | async def handle_query(question_model: QuestionModel): function handle_chat (line 41) | async def handle_chat(question_model: QuestionModel): function root (line 52) | async def root(): FILE: embedchain/embedchain/deployment/streamlit.io/app.py function embedchain_bot (line 7) | def embedchain_bot(): FILE: embedchain/embedchain/embedchain.py class EmbedChain (line 38) | class EmbedChain(JSONSerializable): method __init__ (line 39) | def __init__( method collect_metrics (line 98) | def collect_metrics(self): method collect_metrics (line 102) | def collect_metrics(self, value): method online (line 108) | def online(self): method online (line 112) | def online(self, value): method add (line 117) | def add( method _get_existing_doc_id (line 239) | def _get_existing_doc_id(self, chunker: BaseChunker, src: Any): method _load_and_embed (line 297) | def _load_and_embed( method _format_result (line 428) | def _format_result(results): method _retrieve_from_database (line 438) | def _retrieve_from_database( method query (line 482) | def query( method chat (line 563) | def chat( method search (line 676) | def search(self, query, num_documents=3, where=None, raw_filter=None, ... method set_collection_name (line 714) | def set_collection_name(self, name: str): method reset (line 729) | def reset(self): method get_history (line 748) | def get_history( method delete_session_chat_history (line 764) | def delete_session_chat_history(self, session_id: str = "default"): method delete_all_chat_history (line 768) | def delete_all_chat_history(self, app_id: str): method delete (line 772) | def delete(self, source_id: str): FILE: embedchain/embedchain/embedder/aws_bedrock.py class AWSBedrockEmbedder (line 15) | class AWSBedrockEmbedder(BaseEmbedder): method __init__ (line 16) | def __init__(self, config: Optional[AWSBedrockEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/azure_openai.py class AzureOpenAIEmbedder (line 10) | class AzureOpenAIEmbedder(BaseEmbedder): method __init__ (line 11) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/base.py class EmbeddingFunc (line 15) | class EmbeddingFunc(EmbeddingFunction): method __init__ (line 16) | def __init__(self, embedding_fn: Callable[[list[str]], list[str]]): method __call__ (line 19) | def __call__(self, input: Embeddable) -> Embeddings: class BaseEmbedder (line 23) | class BaseEmbedder: method __init__ (line 31) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method set_embedding_fn (line 44) | def set_embedding_fn(self, embedding_fn: Callable[[list[str]], list[st... method set_vector_dimension (line 56) | def set_vector_dimension(self, vector_dimension: int): method _langchain_default_concept (line 68) | def _langchain_default_concept(embeddings: Any): method to_embeddings (line 80) | def to_embeddings(self, data: str, **_): FILE: embedchain/embedchain/embedder/clarifai.py class ClarifaiEmbeddingFunction (line 10) | class ClarifaiEmbeddingFunction(EmbeddingFunction): method __init__ (line 11) | def __init__(self, config: BaseEmbedderConfig) -> None: method __call__ (line 27) | def __call__(self, input: Union[str, list[str]]) -> Embeddings: class ClarifaiEmbedder (line 47) | class ClarifaiEmbedder(BaseEmbedder): method __init__ (line 48) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/cohere.py class CohereEmbedder (line 10) | class CohereEmbedder(BaseEmbedder): method __init__ (line 11) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/google.py class GoogleAIEmbeddingFunction (line 11) | class GoogleAIEmbeddingFunction(EmbeddingFunction): method __init__ (line 12) | def __init__(self, config: Optional[GoogleAIEmbedderConfig] = None) ->... method __call__ (line 16) | def __call__(self, input: Union[list[str], str]) -> Embeddings: class GoogleAIEmbedder (line 31) | class GoogleAIEmbedder(BaseEmbedder): method __init__ (line 32) | def __init__(self, config: Optional[GoogleAIEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/gpt4all.py class GPT4AllEmbedder (line 8) | class GPT4AllEmbedder(BaseEmbedder): method __init__ (line 9) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/huggingface.py class HuggingFaceEmbedder (line 19) | class HuggingFaceEmbedder(BaseEmbedder): method __init__ (line 20) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/mistralai.py class MistralAIEmbeddingFunction (line 11) | class MistralAIEmbeddingFunction(EmbeddingFunction): method __init__ (line 12) | def __init__(self, config: BaseEmbedderConfig) -> None: method __call__ (line 26) | def __call__(self, input: Union[list[str], str]) -> Embeddings: class MistralAIEmbedder (line 35) | class MistralAIEmbedder(BaseEmbedder): method __init__ (line 36) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/nvidia.py class NvidiaEmbedder (line 14) | class NvidiaEmbedder(BaseEmbedder): method __init__ (line 15) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/ollama.py class OllamaEmbedder (line 18) | class OllamaEmbedder(BaseEmbedder): method __init__ (line 19) | def __init__(self, config: Optional[OllamaEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/openai.py class OpenAIEmbedder (line 12) | class OpenAIEmbedder(BaseEmbedder): method __init__ (line 13) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/embedder/vertexai.py class VertexAIEmbedder (line 10) | class VertexAIEmbedder(BaseEmbedder): method __init__ (line 11) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): FILE: embedchain/embedchain/evaluation/base.py class BaseMetric (line 6) | class BaseMetric(ABC): method __init__ (line 12) | def __init__(self, name: str = "base_metric"): method evaluate (line 19) | def evaluate(self, dataset: list[EvalData]): FILE: embedchain/embedchain/evaluation/metrics/answer_relevancy.py class AnswerRelevance (line 18) | class AnswerRelevance(BaseMetric): method __init__ (line 23) | def __init__(self, config: Optional[AnswerRelevanceConfig] = AnswerRel... method _generate_prompt (line 31) | def _generate_prompt(self, data: EvalData) -> str: method _generate_questions (line 39) | def _generate_questions(self, prompt: str) -> list[str]: method _generate_embedding (line 49) | def _generate_embedding(self, question: str) -> np.ndarray: method _compute_similarity (line 59) | def _compute_similarity(self, original: np.ndarray, generated: np.ndar... method _compute_score (line 67) | def _compute_score(self, data: EvalData) -> float: method evaluate (line 78) | def evaluate(self, dataset: list[EvalData]) -> float: FILE: embedchain/embedchain/evaluation/metrics/context_relevancy.py class ContextRelevance (line 16) | class ContextRelevance(BaseMetric): method __init__ (line 21) | def __init__(self, config: Optional[ContextRelevanceConfig] = ContextR... method _sentence_segmenter (line 30) | def _sentence_segmenter(self, text: str) -> list[str]: method _compute_score (line 36) | def _compute_score(self, data: EvalData) -> float: method evaluate (line 53) | def evaluate(self, dataset: list[EvalData]) -> float: FILE: embedchain/embedchain/evaluation/metrics/groundedness.py class Groundedness (line 18) | class Groundedness(BaseMetric): method __init__ (line 23) | def __init__(self, config: Optional[GroundednessConfig] = None): method _generate_answer_claim_prompt (line 31) | def _generate_answer_claim_prompt(self, data: EvalData) -> str: method _get_claim_statements (line 38) | def _get_claim_statements(self, prompt: str) -> np.ndarray: method _generate_claim_inference_prompt (line 50) | def _generate_claim_inference_prompt(self, data: EvalData, claim_state... method _get_claim_verdict_scores (line 59) | def _get_claim_verdict_scores(self, prompt: str) -> np.ndarray: method _compute_score (line 73) | def _compute_score(self, data: EvalData) -> float: method evaluate (line 84) | def evaluate(self, dataset: list[EvalData]): FILE: embedchain/embedchain/factory.py function load_class (line 4) | def load_class(class_type): class LlmFactory (line 10) | class LlmFactory: method create (line 38) | def create(cls, provider_name, config_data): class EmbedderFactory (line 51) | class EmbedderFactory: method create (line 78) | def create(cls, provider_name, config_data): class VectorDBFactory (line 91) | class VectorDBFactory: method create (line 114) | def create(cls, provider_name, config_data): FILE: embedchain/embedchain/helpers/callbacks.py class StreamingStdOutCallbackHandlerYield (line 13) | class StreamingStdOutCallbackHandlerYield(StreamingStdOutCallbackHandler): method __init__ (line 24) | def __init__(self, q: queue.Queue) -> None: method on_llm_start (line 32) | def on_llm_start(self, serialized: dict[str, Any], prompts: list[str],... method on_llm_new_token (line 37) | def on_llm_new_token(self, token: str, **kwargs: Any) -> None: method on_llm_end (line 41) | def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: method on_llm_error (line 45) | def on_llm_error(self, error: Union[Exception, KeyboardInterrupt], **k... function generate (line 51) | def generate(rq: queue.Queue): FILE: embedchain/embedchain/helpers/json_serializable.py function register_deserializable (line 14) | def register_deserializable(cls: Type[T]) -> Type[T]: class JSONSerializable (line 42) | class JSONSerializable: method serialize (line 52) | def serialize(self) -> str: method deserialize (line 66) | def deserialize(cls, json_str: str) -> Any: method _auto_encoder (line 89) | def _auto_encoder(obj: Any) -> Union[dict[str, Any], None]: method _auto_decoder (line 130) | def _auto_decoder(cls, dct: dict[str, Any]) -> Any: method save_to_file (line 161) | def save_to_file(self, filename: str) -> None: method load_from_file (line 172) | def load_from_file(cls, filename: str) -> Any: method _register_class_as_deserializable (line 187) | def _register_class_as_deserializable(cls, target_class: Type[T]) -> N... FILE: embedchain/embedchain/llm/anthropic.py class AnthropicLlm (line 18) | class AnthropicLlm(BaseLlm): method __init__ (line 19) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 24) | def get_llm_model_answer(self, prompt) -> tuple[str, Optional[dict[str... method _get_answer (line 47) | def _get_answer(prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/aws_bedrock.py class AWSBedrockLlm (line 17) | class AWSBedrockLlm(BaseLlm): method __init__ (line 18) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 21) | def get_llm_model_answer(self, prompt) -> str: method _get_answer (line 25) | def _get_answer(self, prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/azure_openai.py class AzureOpenAILlm (line 12) | class AzureOpenAILlm(BaseLlm): method __init__ (line 13) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 16) | def get_llm_model_answer(self, prompt): method _get_answer (line 20) | def _get_answer(prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/base.py class BaseLlm (line 24) | class BaseLlm(JSONSerializable): method __init__ (line 25) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 45) | def get_llm_model_answer(self): method set_history (line 51) | def set_history(self, history: Any): method update_history (line 61) | def update_history(self, app_id: str, session_id: str = "default"): method add_history (line 66) | def add_history( method _format_history (line 80) | def _format_history(self) -> str: method _format_memories (line 88) | def _format_memories(self, memories: list[dict]) -> str: method generate_prompt (line 98) | def generate_prompt(self, input_query: str, contexts: list[str], **kwa... method _append_search_and_context (line 153) | def _append_search_and_context(context: str, web_search_result: str) -... method get_answer_from_llm (line 165) | def get_answer_from_llm(self, prompt: str): method access_search_and_get_results (line 178) | def access_search_and_get_results(input_query: str): method _stream_response (line 198) | def _stream_response(answer: Any, token_info: Optional[dict[str, Any]]... method query (line 214) | def query(self, input_query: str, contexts: list[str], config: BaseLlm... method chat (line 274) | def chat( method _get_messages (line 333) | def _get_messages(prompt: str, system_prompt: Optional[str] = None) ->... FILE: embedchain/embedchain/llm/clarifai.py class ClarifaiLlm (line 11) | class ClarifaiLlm(BaseLlm): method __init__ (line 12) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 17) | def get_llm_model_answer(self, prompt): method _get_answer (line 21) | def _get_answer(prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/cohere.py class CohereLlm (line 13) | class CohereLlm(BaseLlm): method __init__ (line 14) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 27) | def get_llm_model_answer(self, prompt) -> tuple[str, Optional[dict[str... method _get_answer (line 53) | def _get_answer(prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/google.py class GoogleLlm (line 19) | class GoogleLlm(BaseLlm): method __init__ (line 20) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 28) | def get_llm_model_answer(self, prompt): method _get_answer (line 34) | def _get_answer(self, prompt: str) -> Union[str, Generator[Any, Any, N... FILE: embedchain/embedchain/llm/gpt4all.py class GPT4ALLLlm (line 15) | class GPT4ALLLlm(BaseLlm): method __init__ (line 16) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 23) | def get_llm_model_answer(self, prompt): method _get_instance (line 27) | def _get_instance(model): method _get_answer (line 44) | def _get_answer(self, prompt: str, config: BaseLlmConfig) -> Union[str... FILE: embedchain/embedchain/llm/groq.py class GroqLlm (line 19) | class GroqLlm(BaseLlm): method __init__ (line 20) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 25) | def get_llm_model_answer(self, prompt) -> tuple[str, Optional[dict[str... method _get_answer (line 47) | def _get_answer(self, prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/huggingface.py class HuggingFaceLlm (line 18) | class HuggingFaceLlm(BaseLlm): method __init__ (line 19) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 32) | def get_llm_model_answer(self, prompt): method _get_answer (line 38) | def _get_answer(prompt: str, config: BaseLlmConfig) -> str: method _from_model (line 50) | def _from_model(prompt: str, config: BaseLlmConfig) -> str: method _from_endpoint (line 72) | def _from_endpoint(prompt: str, config: BaseLlmConfig) -> str: method _from_pipeline (line 83) | def _from_pipeline(prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/jina.py class JinaLlm (line 13) | class JinaLlm(BaseLlm): method __init__ (line 14) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 19) | def get_llm_model_answer(self, prompt): method _get_answer (line 24) | def _get_answer(prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/llama2.py class Llama2Llm (line 13) | class Llama2Llm(BaseLlm): method __init__ (line 14) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 39) | def get_llm_model_answer(self, prompt): FILE: embedchain/embedchain/llm/mistralai.py class MistralAILlm (line 10) | class MistralAILlm(BaseLlm): method __init__ (line 11) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 16) | def get_llm_model_answer(self, prompt) -> tuple[str, Optional[dict[str... method _get_answer (line 39) | def _get_answer(prompt: str, config: BaseLlmConfig): FILE: embedchain/embedchain/llm/nvidia.py class NvidiaLlm (line 22) | class NvidiaLlm(BaseLlm): method __init__ (line 23) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 28) | def get_llm_model_answer(self, prompt) -> tuple[str, Optional[dict[str... method _get_answer (line 51) | def _get_answer(prompt: str, config: BaseLlmConfig) -> Union[str, Iter... FILE: embedchain/embedchain/llm/ollama.py class OllamaLlm (line 23) | class OllamaLlm(BaseLlm): method __init__ (line 24) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 35) | def get_llm_model_answer(self, prompt): method _get_answer (line 39) | def _get_answer(prompt: str, config: BaseLlmConfig) -> Union[str, Iter... FILE: embedchain/embedchain/llm/openai.py class OpenAILlm (line 18) | class OpenAILlm(BaseLlm): method __init__ (line 19) | def __init__( method get_llm_model_answer (line 27) | def get_llm_model_answer(self, prompt) -> tuple[str, Optional[dict[str... method _get_answer (line 50) | def _get_answer(self, prompt: str, config: BaseLlmConfig) -> str: method _query_function_call (line 106) | def _query_function_call( FILE: embedchain/embedchain/llm/together.py class TogetherLlm (line 18) | class TogetherLlm(BaseLlm): method __init__ (line 19) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 32) | def get_llm_model_answer(self, prompt) -> tuple[str, Optional[dict[str... method _get_answer (line 58) | def _get_answer(prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/vertex_ai.py class VertexAILlm (line 16) | class VertexAILlm(BaseLlm): method __init__ (line 17) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 27) | def get_llm_model_answer(self, prompt) -> tuple[str, Optional[dict[str... method _get_answer (line 52) | def _get_answer(prompt: str, config: BaseLlmConfig) -> str: FILE: embedchain/embedchain/llm/vllm.py class VLLM (line 14) | class VLLM(BaseLlm): method __init__ (line 15) | def __init__(self, config: Optional[BaseLlmConfig] = None): method get_llm_model_answer (line 20) | def get_llm_model_answer(self, prompt): method _get_answer (line 24) | def _get_answer(prompt: str, config: BaseLlmConfig) -> Union[str, Iter... FILE: embedchain/embedchain/loaders/audio.py class AudioLoader (line 18) | class AudioLoader(BaseLoader): method __init__ (line 19) | def __init__(self): method load_data (line 26) | def load_data(self, url: str): FILE: embedchain/embedchain/loaders/base_loader.py class BaseLoader (line 6) | class BaseLoader(JSONSerializable): method __init__ (line 7) | def __init__(self): method load_data (line 10) | def load_data(self, url, **kwargs: Optional[dict[str, Any]]): FILE: embedchain/embedchain/loaders/beehiiv.py class BeehiivLoader (line 16) | class BeehiivLoader(BaseLoader): method load_data (line 21) | def load_data(self, url: str): FILE: embedchain/embedchain/loaders/csv.py class CsvLoader (line 11) | class CsvLoader(BaseLoader): method _detect_delimiter (line 13) | def _detect_delimiter(first_line): method _get_file_content (line 19) | def _get_file_content(content): method load_data (line 35) | def load_data(content): FILE: embedchain/embedchain/loaders/directory_loader.py class DirectoryLoader (line 17) | class DirectoryLoader(BaseLoader): method __init__ (line 20) | def __init__(self, config: Optional[dict[str, Any]] = None): method load_data (line 27) | def load_data(self, path: str): method _process_directory (line 41) | def _process_directory(self, directory_path: Path): method _predict_loader (line 54) | def _predict_loader(self, file_path: Path) -> BaseLoader: FILE: embedchain/embedchain/loaders/discord.py class DiscordLoader (line 12) | class DiscordLoader(BaseLoader): method __init__ (line 17) | def __init__(self): method _format_message (line 24) | def _format_message(message): method load_data (line 99) | def load_data(self, channel_id: str): FILE: embedchain/embedchain/loaders/discourse.py class DiscourseLoader (line 14) | class DiscourseLoader(BaseLoader): method __init__ (line 15) | def __init__(self, config: Optional[dict[str, Any]] = None): method _check_query (line 28) | def _check_query(self, query): method _load_post (line 34) | def _load_post(self, post_id): method load_data (line 57) | def load_data(self, query): FILE: embedchain/embedchain/loaders/docs_site_loader.py class DocsSiteLoader (line 22) | class DocsSiteLoader(BaseLoader): method __init__ (line 23) | def __init__(self): method _get_child_links_recursive (line 26) | def _get_child_links_recursive(self, url): method _get_all_urls (line 50) | def _get_all_urls(self, url): method _load_data_from_url (line 57) | def _load_data_from_url(url: str) -> list: method load_data (line 110) | def load_data(self, url): FILE: embedchain/embedchain/loaders/docx_file.py class DocxFileLoader (line 12) | class DocxFileLoader(BaseLoader): method load_data (line 13) | def load_data(self, url): FILE: embedchain/embedchain/loaders/dropbox.py class DropboxLoader (line 12) | class DropboxLoader(BaseLoader): method __init__ (line 13) | def __init__(self): method _download_folder (line 29) | def _download_folder(self, path: str, local_root: str) -> list[FileMet... method _generate_dir_id_from_all_paths (line 41) | def _generate_dir_id_from_all_paths(self, path: str) -> str: method load_data (line 47) | def load_data(self, path: str): method _clean_directory (line 71) | def _clean_directory(self, dir_path): FILE: embedchain/embedchain/loaders/excel_file.py class ExcelFileLoader (line 21) | class ExcelFileLoader(BaseLoader): method load_data (line 22) | def load_data(self, excel_url): FILE: embedchain/embedchain/loaders/github.py class GithubLoader (line 19) | class GithubLoader(BaseLoader): method __init__ (line 22) | def __init__(self, config: Optional[dict[str, Any]] = None): method _github_search_code (line 50) | def _github_search_code(self, query: str): method _get_github_repo_data (line 69) | def _get_github_repo_data(self, repo_name: str, branch_name: str = Non... method _github_search_repo (line 113) | def _github_search_repo(self, query: str) -> list[dict]: method _github_search_issues_and_pr (line 121) | def _github_search_issues_and_pr(self, query: str, type: str) -> list[... method _github_search_discussions (line 160) | def _github_search_discussions(self, query: str): method _get_github_repo_branch (line 196) | def _get_github_repo_branch(self, query: str, type: str) -> list[dict]: method _get_github_repo_file (line 215) | def _get_github_repo_file(self, query: str, type: str) -> list[dict]: method _search_github_data (line 233) | def _search_github_data(self, search_type: str, query: str): method _get_valid_github_query (line 255) | def _get_valid_github_query(query: str): method load_data (line 291) | def load_data(self, search_query: str, max_results: int = 1000): FILE: embedchain/embedchain/loaders/gmail.py class GmailReader (line 28) | class GmailReader: method __init__ (line 31) | def __init__(self, query: str, service=None, results_per_page: int = 10): method _initialize_service (line 37) | def _initialize_service(): method _get_credentials (line 42) | def _get_credentials(): method load_emails (line 62) | def load_emails(self) -> list[dict]: method _get_email (line 68) | def _get_email(self, message_id: str): method _parse_email (line 72) | def _parse_email(self, raw_email) -> dict: method _get_header (line 83) | def _get_header(mime_msg, header_name: str) -> str: method _format_date (line 87) | def _format_date(mime_msg) -> Optional[str]: method _get_body (line 92) | def _get_body(mime_msg) -> str: class GmailLoader (line 115) | class GmailLoader(BaseLoader): method load_data (line 116) | def load_data(self, query: str): method _process_email (line 129) | def _process_email(email: dict) -> str: method _generate_doc_id (line 142) | def _generate_doc_id(query: str, data: list[dict]) -> str: FILE: embedchain/embedchain/loaders/google_drive.py class GoogleDriveLoader (line 26) | class GoogleDriveLoader(BaseLoader): method _get_drive_id_from_url (line 28) | def _get_drive_id_from_url(url: str): method load_data (line 37) | def load_data(self, url: str): FILE: embedchain/embedchain/loaders/image.py class ImageLoader (line 15) | class ImageLoader(BaseLoader): method __init__ (line 16) | def __init__(self, max_tokens: int = 500, api_key: str = None, prompt:... method _encode_image (line 24) | def _encode_image(image_path: str): method _create_completion_request (line 28) | def _create_completion_request(self, content: str): method _process_url (line 33) | def _process_url(self, url: str): method load_data (line 44) | def load_data(self, url: str): FILE: embedchain/embedchain/loaders/json.py class JSONReader (line 13) | class JSONReader: method __init__ (line 14) | def __init__(self) -> None: method load_data (line 19) | def load_data(json_data: Union[dict, str]) -> list[str]: class JSONLoader (line 44) | class JSONLoader(BaseLoader): method _check_content (line 46) | def _check_content(content): method load_data (line 56) | def load_data(content): FILE: embedchain/embedchain/loaders/local_qna_pair.py class LocalQnaPairLoader (line 8) | class LocalQnaPairLoader(BaseLoader): method load_data (line 9) | def load_data(self, content): FILE: embedchain/embedchain/loaders/local_text.py class LocalTextLoader (line 8) | class LocalTextLoader(BaseLoader): method load_data (line 9) | def load_data(self, content): FILE: embedchain/embedchain/loaders/mdx.py class MdxLoader (line 8) | class MdxLoader(BaseLoader): method load_data (line 9) | def load_data(self, url): FILE: embedchain/embedchain/loaders/mysql.py class MySQLLoader (line 11) | class MySQLLoader(BaseLoader): method __init__ (line 12) | def __init__(self, config: Optional[dict[str, Any]]): method _setup_loader (line 25) | def _setup_loader(self, config: dict[str, Any]): method _check_query (line 45) | def _check_query(query): method load_data (line 53) | def load_data(self, query): FILE: embedchain/embedchain/loaders/notion.py class NotionDocument (line 15) | class NotionDocument: method __init__ (line 20) | def __init__(self, text: str, extra_info: dict[str, Any]): class NotionPageLoader (line 25) | class NotionPageLoader: method __init__ (line 33) | def __init__(self, integration_token: Optional[str] = None) -> None: method _read_block (line 48) | def _read_block(self, block_id: str, num_tabs: int = 0) -> str: method load_data (line 87) | def load_data(self, page_ids: list[str]) -> list[NotionDocument]: class NotionLoader (line 97) | class NotionLoader(BaseLoader): method load_data (line 98) | def load_data(self, source): FILE: embedchain/embedchain/loaders/openapi.py class OpenAPILoader (line 11) | class OpenAPILoader(BaseLoader): method _get_file_content (line 13) | def _get_file_content(content): method load_data (line 29) | def load_data(content): FILE: embedchain/embedchain/loaders/pdf_file.py class PdfFileLoader (line 11) | class PdfFileLoader(BaseLoader): method load_data (line 12) | def load_data(self, url): FILE: embedchain/embedchain/loaders/postgres.py class PostgresLoader (line 10) | class PostgresLoader(BaseLoader): method __init__ (line 11) | def __init__(self, config: Optional[dict[str, Any]] = None): method _setup_loader (line 20) | def _setup_loader(self, config: dict[str, Any]): method _check_query (line 42) | def _check_query(query): method load_data (line 48) | def load_data(self, query): method close_connection (line 67) | def close_connection(self): FILE: embedchain/embedchain/loaders/rss_feed.py class RSSFeedLoader (line 8) | class RSSFeedLoader(BaseLoader): method load_data (line 11) | def load_data(self, url): method serialize_metadata (line 21) | def serialize_metadata(metadata): method get_rss_content (line 29) | def get_rss_content(url: str): FILE: embedchain/embedchain/loaders/sitemap.py class SitemapLoader (line 26) | class SitemapLoader(BaseLoader): method load_data (line 33) | def load_data(self, sitemap_source): FILE: embedchain/embedchain/loaders/slack.py class SlackLoader (line 17) | class SlackLoader(BaseLoader): method __init__ (line 18) | def __init__(self, config: Optional[dict[str, Any]] = None): method _setup_loader (line 29) | def _setup_loader(self, config: dict[str, Any]): method _check_query (line 62) | def _check_query(query): method load_data (line 68) | def load_data(self, query): FILE: embedchain/embedchain/loaders/substack.py class SubstackLoader (line 16) | class SubstackLoader(BaseLoader): method load_data (line 21) | def load_data(self, url: str): FILE: embedchain/embedchain/loaders/text_file.py class TextFileLoader (line 9) | class TextFileLoader(BaseLoader): method load_data (line 10) | def load_data(self, url: str): FILE: embedchain/embedchain/loaders/unstructured_file.py class UnstructuredLoader (line 9) | class UnstructuredLoader(BaseLoader): method load_data (line 10) | def load_data(self, url): FILE: embedchain/embedchain/loaders/web_page.py class WebPageLoader (line 22) | class WebPageLoader(BaseLoader): method load_data (line 26) | def load_data(self, url, **kwargs: Optional[dict[str, Any]]): method _get_clean_content (line 65) | def _get_clean_content(html, url) -> str: method close_session (line 115) | def close_session(cls): method fetch_reference_links (line 118) | def fetch_reference_links(self, response): FILE: embedchain/embedchain/loaders/xml.py class XmlLoader (line 16) | class XmlLoader(BaseLoader): method load_data (line 17) | def load_data(self, xml_url): FILE: embedchain/embedchain/loaders/youtube_channel.py class YoutubeChannelLoader (line 13) | class YoutubeChannelLoader(BaseLoader): method load_data (line 16) | def load_data(self, channel_name): FILE: embedchain/embedchain/loaders/youtube_video.py class YoutubeVideoLoader (line 20) | class YoutubeVideoLoader(BaseLoader): method load_data (line 21) | def load_data(self, url): FILE: embedchain/embedchain/memory/base.py class ChatHistory (line 14) | class ChatHistory: method __init__ (line 15) | def __init__(self) -> None: method add (line 18) | def add(self, app_id, session_id, chat_message: ChatMessage) -> Option... method delete (line 43) | def delete(self, app_id: str, session_id: Optional[str] = None): method get (line 63) | def get( method count (line 103) | def count(self, app_id: str, session_id: Optional[str] = None): method _serialize_json (line 119) | def _serialize_json(metadata: dict[str, Any]): method _deserialize_json (line 123) | def _deserialize_json(metadata: str): method close_connection (line 126) | def close_connection(self): FILE: embedchain/embedchain/memory/message.py class BaseMessage (line 9) | class BaseMessage(JSONSerializable): method __init__ (line 25) | def __init__(self, content: str, created_by: str, metadata: Optional[d... method type (line 32) | def type(self) -> str: method is_lc_serializable (line 36) | def is_lc_serializable(cls) -> bool: method __str__ (line 40) | def __str__(self) -> str: class ChatMessage (line 44) | class ChatMessage(JSONSerializable): method add_user_message (line 55) | def add_user_message(self, message: str, metadata: Optional[dict] = No... method add_ai_message (line 64) | def add_ai_message(self, message: str, metadata: Optional[dict] = None): method __str__ (line 73) | def __str__(self) -> str: FILE: embedchain/embedchain/memory/utils.py function merge_metadata_dict (line 4) | def merge_metadata_dict(left: Optional[dict[str, Any]], right: Optional[... FILE: embedchain/embedchain/migrations/env.py function run_migrations_offline (line 21) | def run_migrations_offline() -> None: function run_migrations_online (line 45) | def run_migrations_online() -> None: FILE: embedchain/embedchain/migrations/versions/40a327b3debd_create_initial_migrations.py function upgrade (line 21) | def upgrade() -> None: function downgrade (line 53) | def downgrade() -> None: FILE: embedchain/embedchain/models/data_type.py class DirectDataType (line 4) | class DirectDataType(Enum): class IndirectDataType (line 12) | class IndirectDataType(Enum): class SpecialDataType (line 47) | class SpecialDataType(Enum): class DataType (line 55) | class DataType(Enum): FILE: embedchain/embedchain/models/embedding_functions.py class EmbeddingFunctions (line 4) | class EmbeddingFunctions(Enum): FILE: embedchain/embedchain/models/providers.py class Providers (line 4) | class Providers(Enum): FILE: embedchain/embedchain/models/vector_dimensions.py class VectorDimensions (line 5) | class VectorDimensions(Enum): FILE: embedchain/embedchain/pipeline.py class Pipeline (line 4) | class Pipeline(App): FILE: embedchain/embedchain/store/assistants.py class OpenAIAssistant (line 25) | class OpenAIAssistant: method __init__ (line 26) | def __init__( method add (line 51) | def add(self, source, data_type=None): method chat (line 62) | def chat(self, message): method delete_thread (line 67) | def delete_thread(self): method _initialize_assistant (line 72) | def _initialize_assistant(self, assistant_id): method _create_thread (line 82) | def _create_thread(self): method _prepare_source_path (line 86) | def _prepare_source_path(self, source, data_type=None): method _add_file_to_assistant (line 94) | def _add_file_to_assistant(self, file_path): method _generate_file_ids (line 98) | def _generate_file_ids(self, data_sources): method _send_message (line 104) | def _send_message(self, message): method _wait_for_completion (line 108) | def _wait_for_completion(self): method _get_latest_response (line 124) | def _get_latest_response(self): method _get_history (line 128) | def _get_history(self): method _format_message (line 133) | def _format_message(thread_message): method _save_temp_data (line 139) | def _save_temp_data(data, source): class AIAssistant (line 149) | class AIAssistant: method __init__ (line 150) | def __init__( method add (line 187) | def add(self, source, data_type=None): method chat (line 196) | def chat(self, query): method delete (line 205) | def delete(self): FILE: embedchain/embedchain/telemetry/posthog.py class AnonymousTelemetry (line 12) | class AnonymousTelemetry: method __init__ (line 13) | def __init__(self, host="https://app.posthog.com", enabled=True): method _get_user_id (line 36) | def _get_user_id(): method capture (line 49) | def capture(self, event_name, properties=None): FILE: embedchain/embedchain/utils/cli.py function get_pkg_path_from_name (line 12) | def get_pkg_path_from_name(template: str): function setup_fly_io_app (line 30) | def setup_fly_io_app(extra_args): function setup_modal_com_app (line 45) | def setup_modal_com_app(extra_args): function setup_render_com_app (line 67) | def setup_render_com_app(): function setup_streamlit_io_app (line 89) | def setup_streamlit_io_app(): function setup_gradio_app (line 94) | def setup_gradio_app(): function setup_hf_app (line 99) | def setup_hf_app(): function run_dev_fly_io (line 118) | def run_dev_fly_io(debug, host, port): function run_dev_modal_com (line 135) | def run_dev_modal_com(): function run_dev_streamlit_io (line 146) | def run_dev_streamlit_io(): function run_dev_render_com (line 157) | def run_dev_render_com(debug, host, port): function run_dev_gradio (line 174) | def run_dev_gradio(): function read_env_file (line 185) | def read_env_file(env_file_path): function deploy_fly (line 211) | def deploy_fly(): function deploy_modal (line 244) | def deploy_modal(): function deploy_streamlit (line 258) | def deploy_streamlit(): function deploy_render (line 279) | def deploy_render(): function deploy_gradio_app (line 294) | def deploy_gradio_app(): function deploy_hf_spaces (line 309) | def deploy_hf_spaces(ec_app_name): FILE: embedchain/embedchain/utils/evaluation.py class EvalMetric (line 7) | class EvalMetric(Enum): class EvalData (line 13) | class EvalData(BaseModel): FILE: embedchain/embedchain/utils/misc.py function parse_content (line 18) | def parse_content(content, type): function clean_string (line 74) | def clean_string(text): function is_readable (line 105) | def is_readable(s): function use_pysqlite3 (line 120) | def use_pysqlite3(): function format_source (line 159) | def format_source(source: str, limit: int = 20) -> str: function detect_datatype (line 170) | def detect_datatype(source: Any) -> DataType: function is_valid_json_string (line 381) | def is_valid_json_string(source: str): function validate_config (line 389) | def validate_config(config_data): function chunks (line 536) | def chunks(iterable, batch_size=100, desc="Processing chunks"): FILE: embedchain/embedchain/vectordb/base.py class BaseVectorDB (line 6) | class BaseVectorDB(JSONSerializable): method __init__ (line 9) | def __init__(self, config: BaseVectorDbConfig): method _initialize (line 18) | def _initialize(self): method _get_or_create_db (line 26) | def _get_or_create_db(self): method _get_or_create_collection (line 30) | def _get_or_create_collection(self): method _set_embedder (line 34) | def _set_embedder(self, embedder: BaseEmbedder): method get (line 43) | def get(self): method add (line 47) | def add(self): method query (line 51) | def query(self): method count (line 55) | def count(self) -> int: method reset (line 64) | def reset(self): method set_collection_name (line 70) | def set_collection_name(self, name: str): method delete (line 79) | def delete(self): FILE: embedchain/embedchain/vectordb/chroma.py class ChromaDB (line 29) | class ChromaDB(BaseVectorDB): method __init__ (line 32) | def __init__(self, config: Optional[ChromaDbConfig] = None): method _initialize (line 66) | def _initialize(self): method _get_or_create_db (line 76) | def _get_or_create_db(self): method _generate_where_clause (line 81) | def _generate_where_clause(where: dict[str, any]) -> dict[str, any]: method _get_or_create_collection (line 94) | def _get_or_create_collection(self, name: str) -> Collection: method get (line 112) | def get(self, ids: Optional[list[str]] = None, where: Optional[dict[st... method add (line 134) | def add( method _format_result (line 167) | def _format_result(results: QueryResult) -> list[tuple[Document, float]]: method query (line 185) | def query( method set_collection_name (line 246) | def set_collection_name(self, name: str): method count (line 258) | def count(self) -> int: method delete (line 267) | def delete(self, where): method reset (line 270) | def reset(self): FILE: embedchain/embedchain/vectordb/elasticsearch.py class ElasticsearchDB (line 21) | class ElasticsearchDB(BaseVectorDB): method __init__ (line 26) | def __init__( method _initialize (line 62) | def _initialize(self): method _get_or_create_db (line 81) | def _get_or_create_db(self): method _get_or_create_collection (line 85) | def _get_or_create_collection(self, name): method get (line 88) | def get(self, ids: Optional[list[str]] = None, where: Optional[dict[st... method add (line 122) | def add( method query (line 165) | def query( method set_collection_name (line 221) | def set_collection_name(self, name: str): method count (line 232) | def count(self) -> int: method reset (line 244) | def reset(self): method _get_index (line 253) | def _get_index(self) -> str: method delete (line 263) | def delete(self, where): FILE: embedchain/embedchain/vectordb/lancedb.py class LanceDB (line 16) | class LanceDB(BaseVectorDB): method __init__ (line 21) | def __init__( method _initialize (line 40) | def _initialize(self): method _get_or_create_db (line 57) | def _get_or_create_db(self): method _generate_where_clause (line 63) | def _generate_where_clause(self, where: Dict[str, any]) -> str: method _get_or_create_collection (line 87) | def _get_or_create_collection(self, table_name: str, reset=False): method get (line 127) | def get(self, ids: Optional[List[str]] = None, where: Optional[Dict[st... method add (line 169) | def add( method _format_result (line 206) | def _format_result(self, results) -> list: method query (line 217) | def query( method set_collection_name (line 263) | def set_collection_name(self, name: str): method count (line 275) | def count(self) -> int: method delete (line 284) | def delete(self, where): method reset (line 287) | def reset(self): FILE: embedchain/embedchain/vectordb/opensearch.py class OpenSearchDB (line 26) | class OpenSearchDB(BaseVectorDB): method __init__ (line 31) | def __init__(self, config: OpenSearchDBConfig): method _initialize (line 51) | def _initialize(self): method _get_or_create_db (line 74) | def _get_or_create_db(self): method _get_or_create_collection (line 78) | def _get_or_create_collection(self, name): method get (line 81) | def get( method add (line 118) | def add(self, documents: list[str], metadatas: list[object], ids: list... method query (line 146) | def query( method set_collection_name (line 208) | def set_collection_name(self, name: str): method count (line 219) | def count(self) -> int: method reset (line 231) | def reset(self): method delete (line 240) | def delete(self, where): method _get_index (line 247) | def _get_index(self) -> str: FILE: embedchain/embedchain/vectordb/pinecone.py class PineconeDB (line 23) | class PineconeDB(BaseVectorDB): method __init__ (line 28) | def __init__( method _initialize (line 59) | def _initialize(self): method _setup_pinecone_index (line 66) | def _setup_pinecone_index(self): method get (line 91) | def get(self, ids: Optional[list[str]] = None, where: Optional[dict[st... method add (line 114) | def add( method query (line 149) | def query( method set_collection_name (line 197) | def set_collection_name(self, name: str): method count (line 208) | def count(self) -> int: method _get_or_create_db (line 218) | def _get_or_create_db(self): method reset (line 222) | def reset(self): method _generate_filter (line 231) | def _generate_filter(where: dict): method delete (line 240) | def delete(self, where: dict): FILE: embedchain/embedchain/vectordb/qdrant.py class QdrantDB (line 19) | class QdrantDB(BaseVectorDB): method __init__ (line 24) | def __init__(self, config: QdrantDBConfig = None): method _initialize (line 43) | def _initialize(self): method _get_or_create_db (line 65) | def _get_or_create_db(self): method _get_or_create_collection (line 68) | def _get_or_create_collection(self): method get (line 71) | def get(self, ids: Optional[list[str]] = None, where: Optional[dict[st... method add (line 126) | def add( method query (line 161) | def query( method count (line 217) | def count(self) -> int: method reset (line 221) | def reset(self): method set_collection_name (line 225) | def set_collection_name(self, name: str): method _generate_query (line 238) | def _generate_query(where: dict): method delete (line 251) | def delete(self, where: dict): FILE: embedchain/embedchain/vectordb/weaviate.py class WeaviateDB (line 18) | class WeaviateDB(BaseVectorDB): method __init__ (line 23) | def __init__( method _initialize (line 54) | def _initialize(self): method get (line 121) | def get(self, ids: Optional[list[str]] = None, where: Optional[dict[st... method add (line 190) | def add(self, documents: list[str], metadatas: list[object], ids: list... method query (line 220) | def query( method set_collection_name (line 292) | def set_collection_name(self, name: str): method count (line 302) | def count(self) -> int: method _get_or_create_db (line 311) | def _get_or_create_db(self): method reset (line 315) | def reset(self): method _get_index_name (line 325) | def _get_index_name(self) -> str: method _query_with_offset (line 333) | def _query_with_offset(query, offset): method _generate_query (line 339) | def _generate_query(self, where: dict): method delete (line 357) | def delete(self, where: dict): FILE: embedchain/embedchain/vectordb/zilliz.py class ZillizVectorDB (line 27) | class ZillizVectorDB(BaseVectorDB): method __init__ (line 30) | def __init__(self, config: ZillizDBConfig = None): method _initialize (line 54) | def _initialize(self): method _get_or_create_db (line 62) | def _get_or_create_db(self): method _get_or_create_collection (line 66) | def _get_or_create_collection(self, name): method get (line 94) | def get(self, ids: Optional[list[str]] = None, where: Optional[dict[st... method add (line 128) | def add( method query (line 146) | def query( method count (line 202) | def count(self) -> int: method reset (line 211) | def reset(self, collection_names: list[str] = None): method set_collection_name (line 224) | def set_collection_name(self, name: str): method _generate_zilliz_filter (line 235) | def _generate_zilliz_filter(self, where: dict[str, str]): method delete (line 241) | def delete(self, where: dict[str, Any]): FILE: embedchain/examples/api_server/api_server.py function add (line 14) | def add(): function query (line 29) | def query(): function chat (line 43) | def chat(): FILE: embedchain/examples/chainlit/app.py function on_chat_start (line 11) | async def on_chat_start(): function on_message (line 29) | async def on_message(message: cl.Message): FILE: embedchain/examples/chat-pdf/app.py function embedchain_bot (line 14) | def embedchain_bot(db_path, api_key): function get_db_path (line 38) | def get_db_path(): function get_ec_app (line 43) | def get_ec_app(api_key): function app_response (line 126) | def app_response(result): FILE: embedchain/examples/discord_bot/discord_bot.py function initialize_chat_bot (line 17) | def initialize_chat_bot(): function on_ready (line 23) | async def on_ready(): function on_command_error (line 29) | async def on_command_error(ctx, error): function add (line 37) | async def add(ctx, data_type: str, *, url_or_text: str): function query (line 48) | async def query(ctx, *, question: str): function chat (line 59) | async def chat(ctx, *, question: str): function send_response (line 69) | async def send_response(ctx, message): FILE: embedchain/examples/full_stack/backend/models.py class APIKey (line 6) | class APIKey(db.Model): class BotList (line 11) | class BotList(db.Model): FILE: embedchain/examples/full_stack/backend/routes/chat_response.py function get_answer (line 14) | def get_answer(): FILE: embedchain/examples/full_stack/backend/routes/dashboard.py function set_key (line 9) | def set_key(): function check_key (line 24) | def check_key(): function create_bot (line 34) | def create_bot(): function delete_bot (line 49) | def delete_bot(): function get_bots (line 62) | def get_bots(): FILE: embedchain/examples/full_stack/backend/routes/sources.py function add_sources (line 14) | def add_sources(): FILE: embedchain/examples/full_stack/backend/server.py function load_app (line 18) | def load_app(): FILE: embedchain/examples/full_stack/frontend/next.config.js method rewrites (line 3) | async rewrites() { method webpack (line 15) | webpack(config) { FILE: embedchain/examples/full_stack/frontend/src/components/PageWrapper.js function PageWrapper (line 1) | function PageWrapper({ children }) { FILE: embedchain/examples/full_stack/frontend/src/components/chat/BotWrapper.js function BotWrapper (line 1) | function BotWrapper({ children }) { FILE: embedchain/examples/full_stack/frontend/src/components/chat/HumanWrapper.js function HumanWrapper (line 1) | function HumanWrapper({ children }) { FILE: embedchain/examples/full_stack/frontend/src/components/dashboard/CreateBot.js function CreateBot (line 4) | function CreateBot() { FILE: embedchain/examples/full_stack/frontend/src/components/dashboard/DeleteBot.js function DeleteBot (line 4) | function DeleteBot() { FILE: embedchain/examples/full_stack/frontend/src/components/dashboard/PurgeChats.js function PurgeChats (line 3) | function PurgeChats() { FILE: embedchain/examples/full_stack/frontend/src/components/dashboard/SetOpenAIKey.js function SetOpenAIKey (line 3) | function SetOpenAIKey({ setIsKeyPresent }) { FILE: embedchain/examples/full_stack/frontend/src/containers/ChatWindow.js function ChatWindow (line 7) | function ChatWindow({ embedding_model, app_type, setBotTitle }) { FILE: embedchain/examples/full_stack/frontend/src/containers/SetSources.js function SetSources (line 11) | function SetSources({ FILE: embedchain/examples/full_stack/frontend/src/containers/Sidebar.js function Sidebar (line 13) | function Sidebar() { FILE: embedchain/examples/full_stack/frontend/src/pages/[bot_slug]/app.js function App (line 7) | function App() { FILE: embedchain/examples/full_stack/frontend/src/pages/_app.js function App (line 4) | function App({ Component, pageProps }) { FILE: embedchain/examples/full_stack/frontend/src/pages/_document.js function Document (line 3) | function Document() { FILE: embedchain/examples/full_stack/frontend/src/pages/index.js function Home (line 9) | function Home() { FILE: embedchain/examples/mistral-streamlit/app.py function ec_app (line 9) | def ec_app(): FILE: embedchain/examples/nextjs/ec_app/app.py class SourceModel (line 13) | class SourceModel(BaseModel): class QuestionModel (line 17) | class QuestionModel(BaseModel): function add_source (line 22) | async def add_source(source_model: SourceModel): function handle_query (line 33) | async def handle_query(question_model: QuestionModel): function handle_chat (line 44) | async def handle_chat(question_model: QuestionModel): function root (line 55) | async def root(): FILE: embedchain/examples/nextjs/nextjs_discord/app.py class NextJSBot (line 18) | class NextJSBot: method __init__ (line 19) | def __init__(self) -> None: method add (line 22) | def add(self, _): method query (line 25) | def query(self, message, citations: bool = False): method start (line 44) | def start(self): function on_ready (line 53) | async def on_ready(): function _get_question (line 57) | def _get_question(message): function answer_query (line 66) | async def answer_query(message): function on_message (line 100) | async def on_message(message): function start_bot (line 106) | def start_bot(): FILE: embedchain/examples/nextjs/nextjs_slack/app.py function remove_mentions (line 15) | def remove_mentions(message): class SlackBotApp (line 22) | class SlackBotApp: method __init__ (line 23) | def __init__(self) -> None: method add (line 26) | def add(self, _): method query (line 29) | def query(self, query, citations: bool = False): function app_message_handler (line 57) | def app_message_handler(message, say): function app_mention_handler (line 62) | def app_mention_handler(body, say, client): function start_bot (line 118) | def start_bot(): FILE: embedchain/examples/rest-api/main.py function get_db (line 21) | def get_db(): function check_status (line 41) | def check_status(): function get_all_apps (line 49) | async def get_all_apps(db: Session = Depends(get_db)): function create_app_using_default_config (line 58) | async def create_app_using_default_config(app_id: str, config: UploadFil... function get_datasources_associated_with_app_id (line 97) | async def get_datasources_associated_with_app_id(app_id: str, db: Sessio... function add_datasource_to_an_app (line 134) | async def add_datasource_to_an_app(body: SourceApp, app_id: str, db: Ses... function query_an_app (line 173) | async def query_an_app(body: QueryApp, app_id: str, db: Session = Depend... function deploy_app (line 251) | async def deploy_app(body: DeployAppRequest, app_id: str, db: Session = ... function delete_app (line 294) | async def delete_app(app_id: str, db: Session = Depends(get_db)): FILE: embedchain/examples/rest-api/models.py class QueryApp (line 8) | class QueryApp(BaseModel): class SourceApp (line 20) | class SourceApp(BaseModel): class DeployAppRequest (line 27) | class DeployAppRequest(BaseModel): class MessageApp (line 33) | class MessageApp(BaseModel): class DefaultResponse (line 37) | class DefaultResponse(BaseModel): class AppModel (line 41) | class AppModel(Base): FILE: embedchain/examples/rest-api/services.py function get_app (line 5) | def get_app(db: Session, app_id: str): function get_apps (line 9) | def get_apps(db: Session, skip: int = 0, limit: int = 100): function save_app (line 13) | def save_app(db: Session, app_id: str, config: str): function remove_app (line 21) | def remove_app(db: Session, app_id: str): FILE: embedchain/examples/rest-api/utils.py function generate_error_message_for_api_keys (line 1) | def generate_error_message_for_api_keys(error: ValueError) -> str: FILE: embedchain/examples/sadhguru-ai/app.py function sadhguru_ai (line 15) | def sadhguru_ai(): function read_csv_row_by_row (line 21) | def read_csv_row_by_row(file_path): function add_data_to_app (line 29) | def add_data_to_app(): function app_response (line 77) | def app_response(result): FILE: embedchain/examples/telegram_bot/telegram_bot.py function telegram_webhook (line 16) | def telegram_webhook(): function add_to_chat_bot (line 39) | def add_to_chat_bot(data_type, url_or_text): function query_chat_bot (line 49) | def query_chat_bot(question): function send_message (line 59) | def send_message(chat_id, text): FILE: embedchain/examples/unacademy-ai/app.py function unacademy_ai (line 11) | def unacademy_ai(): function app_response (line 81) | def app_response(result): FILE: embedchain/examples/whatsapp_bot/run.py function main (line 4) | def main(): FILE: embedchain/examples/whatsapp_bot/whatsapp_bot.py function chat (line 11) | def chat(): function handle_message (line 19) | def handle_message(message): function add_sources (line 27) | def add_sources(message): function query (line 42) | def query(message): FILE: embedchain/tests/chunkers/test_base_chunker.py function text_splitter_mock (line 12) | def text_splitter_mock(): function loader_mock (line 17) | def loader_mock(): function app_id (line 22) | def app_id(): function data_type (line 27) | def data_type(): function chunker (line 32) | def chunker(text_splitter_mock, data_type): function test_create_chunks_with_config (line 39) | def test_create_chunks_with_config(chunker, text_splitter_mock, loader_m... function test_create_chunks (line 51) | def test_create_chunks(chunker, text_splitter_mock, loader_mock, app_id,... function test_get_chunks (line 81) | def test_get_chunks(chunker, text_splitter_mock): function test_set_data_type (line 91) | def test_set_data_type(chunker): function test_get_word_count (line 96) | def test_get_word_count(chunker): FILE: embedchain/tests/chunkers/test_chunkers.py function test_default_config_values (line 53) | def test_default_config_values(): function test_custom_config_values (line 61) | def test_custom_config_values(): FILE: embedchain/tests/chunkers/test_text.py class TestTextChunker (line 8) | class TestTextChunker: method test_chunks_without_app_id (line 9) | def test_chunks_without_app_id(self): method test_chunks_with_app_id (line 22) | def test_chunks_with_app_id(self): method test_big_chunksize (line 34) | def test_big_chunksize(self): method test_small_chunksize (line 47) | def test_small_chunksize(self): method test_word_count (line 61) | def test_word_count(self): class MockLoader (line 71) | class MockLoader: method load_data (line 73) | def load_data(src) -> dict: FILE: embedchain/tests/conftest.py function clean_db (line 9) | def clean_db(): function disable_telemetry (line 32) | def disable_telemetry(): FILE: embedchain/tests/embedchain/test_add.py function app (line 13) | def app(mocker): function test_add (line 18) | def test_add(app): function test_add_forced_type (line 29) | def test_add_forced_type(app): function test_dry_run (line 35) | def test_dry_run(app): FILE: embedchain/tests/embedchain/test_embedchain.py function app_instance (line 17) | def app_instance(): function test_whole_app (line 22) | def test_whole_app(app_instance, mocker): function test_add_after_reset (line 41) | def test_add_after_reset(app_instance, mocker): function test_add_with_incorrect_content (line 71) | def test_add_with_incorrect_content(app_instance, mocker): FILE: embedchain/tests/embedchain/test_utils.py class TestApp (line 9) | class TestApp(unittest.TestCase): method test_detect_datatype_youtube (line 12) | def test_detect_datatype_youtube(self): method test_detect_datatype_local_file (line 21) | def test_detect_datatype_local_file(self): method test_detect_datatype_pdf (line 24) | def test_detect_datatype_pdf(self): method test_detect_datatype_local_pdf (line 27) | def test_detect_datatype_local_pdf(self): method test_detect_datatype_xml (line 30) | def test_detect_datatype_xml(self): method test_detect_datatype_local_xml (line 33) | def test_detect_datatype_local_xml(self): method test_detect_datatype_docx (line 36) | def test_detect_datatype_docx(self): method test_detect_datatype_local_docx (line 39) | def test_detect_datatype_local_docx(self): method test_detect_data_type_json (line 42) | def test_detect_data_type_json(self): method test_detect_data_type_local_json (line 45) | def test_detect_data_type_local_json(self): method test_detect_datatype_regular_filesystem_docx (line 49) | def test_detect_datatype_regular_filesystem_docx(self, mock_isfile): method test_detect_datatype_docs_site (line 54) | def test_detect_datatype_docs_site(self): method test_detect_datatype_docs_sitein_path (line 57) | def test_detect_datatype_docs_sitein_path(self): method test_detect_datatype_web_page (line 61) | def test_detect_datatype_web_page(self): method test_detect_datatype_invalid_url (line 64) | def test_detect_datatype_invalid_url(self): method test_detect_datatype_qna_pair (line 67) | def test_detect_datatype_qna_pair(self): method test_detect_datatype_qna_pair_types (line 72) | def test_detect_datatype_qna_pair_types(self): method test_detect_datatype_text (line 79) | def test_detect_datatype_text(self): method test_detect_datatype_non_string_error (line 82) | def test_detect_datatype_non_string_error(self): method test_detect_datatype_regular_filesystem_file_txt (line 88) | def test_detect_datatype_regular_filesystem_file_txt(self, mock_isfile): method test_detect_datatype_regular_filesystem_no_file (line 93) | def test_detect_datatype_regular_filesystem_no_file(self): method test_doc_examples_quickstart (line 97) | def test_doc_examples_quickstart(self): method test_doc_examples_introduction (line 102) | def test_doc_examples_introduction(self): method test_doc_examples_app_types (line 113) | def test_doc_examples_app_types(self): method test_doc_examples_configuration (line 118) | def test_doc_examples_configuration(self): FILE: embedchain/tests/embedder/test_aws_bedrock_embedder.py function test_aws_bedrock_embedder_with_model (line 7) | def test_aws_bedrock_embedder_with_model(): FILE: embedchain/tests/embedder/test_azure_openai_embedder.py function test_azure_openai_embedder_with_http_client (line 9) | def test_azure_openai_embedder_with_http_client(monkeypatch): function test_azure_openai_embedder_with_http_async_client (line 32) | def test_azure_openai_embedder_with_http_async_client(monkeypatch): FILE: embedchain/tests/embedder/test_embedder.py function base_embedder (line 9) | def base_embedder(): function test_initialization (line 13) | def test_initialization(base_embedder): function test_set_embedding_fn (line 20) | def test_set_embedding_fn(base_embedder): function test_set_embedding_fn_when_not_a_function (line 31) | def test_set_embedding_fn_when_not_a_function(base_embedder): function test_set_vector_dimension (line 36) | def test_set_vector_dimension(base_embedder): function test_set_vector_dimension_type_error (line 42) | def test_set_vector_dimension_type_error(base_embedder): function test_embedder_with_config (line 47) | def test_embedder_with_config(): FILE: embedchain/tests/embedder/test_huggingface_embedder.py function test_huggingface_embedder_with_model (line 8) | def test_huggingface_embedder_with_model(monkeypatch): FILE: embedchain/tests/evaluation/test_answer_relevancy_metric.py function mock_data (line 10) | def mock_data(): function mock_answer_relevance_metric (line 31) | def mock_answer_relevance_metric(monkeypatch): function test_answer_relevance_init (line 38) | def test_answer_relevance_init(monkeypatch): function test_answer_relevance_init_with_config (line 49) | def test_answer_relevance_init_with_config(): function test_answer_relevance_init_without_api_key (line 58) | def test_answer_relevance_init_without_api_key(monkeypatch): function test_generate_prompt (line 64) | def test_generate_prompt(mock_answer_relevance_metric, mock_data): function test_generate_questions (line 72) | def test_generate_questions(mock_answer_relevance_metric, mock_data, mon... function test_generate_embedding (line 112) | def test_generate_embedding(mock_answer_relevance_metric, mock_data, mon... function test_compute_similarity (line 122) | def test_compute_similarity(mock_answer_relevance_metric, mock_data): function test_compute_score (line 131) | def test_compute_score(mock_answer_relevance_metric, mock_data, monkeypa... function test_evaluate (line 179) | def test_evaluate(mock_answer_relevance_metric, mock_data, monkeypatch): FILE: embedchain/tests/evaluation/test_context_relevancy_metric.py function mock_data (line 9) | def mock_data(): function mock_context_relevance_metric (line 30) | def mock_context_relevance_metric(monkeypatch): function test_context_relevance_init (line 36) | def test_context_relevance_init(monkeypatch): function test_context_relevance_init_with_config (line 46) | def test_context_relevance_init_with_config(): function test_context_relevance_init_without_api_key (line 54) | def test_context_relevance_init_without_api_key(monkeypatch): function test_sentence_segmenter (line 60) | def test_sentence_segmenter(mock_context_relevance_metric): function test_compute_score (line 68) | def test_compute_score(mock_context_relevance_metric, mock_data, monkeyp... function test_evaluate (line 86) | def test_evaluate(mock_context_relevance_metric, mock_data, monkeypatch): FILE: embedchain/tests/evaluation/test_groundedness_metric.py function mock_data (line 10) | def mock_data(): function mock_groundedness_metric (line 31) | def mock_groundedness_metric(monkeypatch): function test_groundedness_init (line 37) | def test_groundedness_init(monkeypatch): function test_groundedness_init_with_config (line 46) | def test_groundedness_init_with_config(): function test_groundedness_init_without_api_key (line 53) | def test_groundedness_init_without_api_key(monkeypatch): function test_generate_answer_claim_prompt (line 59) | def test_generate_answer_claim_prompt(mock_groundedness_metric, mock_data): function test_get_claim_statements (line 65) | def test_get_claim_statements(mock_groundedness_metric, mock_data, monke... function test_generate_claim_inference_prompt (line 99) | def test_generate_claim_inference_prompt(mock_groundedness_metric, mock_... function test_get_claim_verdict_scores (line 112) | def test_get_claim_verdict_scores(mock_groundedness_metric, mock_data, m... function test_compute_score (line 133) | def test_compute_score(mock_groundedness_metric, mock_data, monkeypatch): function test_evaluate (line 149) | def test_evaluate(mock_groundedness_metric, mock_data, monkeypatch): FILE: embedchain/tests/helper_classes/test_json_serializable.py class TestJsonSerializable (line 13) | class TestJsonSerializable(unittest.TestCase): method test_base_function (line 16) | def test_base_function(self): method test_registration_required (line 42) | def test_registration_required(self): method test_recursive (line 62) | def test_recursive(self): method test_special_subclasses (line 75) | def test_special_subclasses(self): FILE: embedchain/tests/llm/conftest.py function mock_alembic_command_upgrade (line 8) | def mock_alembic_command_upgrade(): FILE: embedchain/tests/llm/test_anthrophic.py function anthropic_llm (line 12) | def anthropic_llm(): function test_get_llm_model_answer (line 18) | def test_get_llm_model_answer(anthropic_llm): function test_get_messages (line 26) | def test_get_messages(anthropic_llm): function test_get_llm_model_answer_with_token_usage (line 36) | def test_get_llm_model_answer_with_token_usage(anthropic_llm): FILE: embedchain/tests/llm/test_aws_bedrock.py function config (line 9) | def config(monkeypatch): function test_get_llm_model_answer (line 25) | def test_get_llm_model_answer(config, mocker): function test_get_llm_model_answer_empty_prompt (line 35) | def test_get_llm_model_answer_empty_prompt(config, mocker): function test_get_llm_model_answer_with_streaming (line 45) | def test_get_llm_model_answer_with_streaming(config, mocker): FILE: embedchain/tests/llm/test_azure_openai.py function azure_openai_llm (line 12) | def azure_openai_llm(): function test_get_llm_model_answer (line 23) | def test_get_llm_model_answer(azure_openai_llm): function test_get_answer (line 31) | def test_get_answer(azure_openai_llm): function test_get_messages (line 52) | def test_get_messages(azure_openai_llm): function test_when_no_deployment_name_provided (line 62) | def test_when_no_deployment_name_provided(): function test_with_api_version (line 69) | def test_with_api_version(): function test_get_llm_model_answer_with_http_client_proxies (line 95) | def test_get_llm_model_answer_with_http_client_proxies(): function test_get_llm_model_answer_with_http_async_client_proxies (line 131) | def test_get_llm_model_answer_with_http_async_client_proxies(): FILE: embedchain/tests/llm/test_base_llm.py function base_llm (line 9) | def base_llm(): function test_is_get_llm_model_answer_not_implemented (line 14) | def test_is_get_llm_model_answer_not_implemented(base_llm): function test_is_stream_bool (line 19) | def test_is_stream_bool(): function test_template_string_gets_converted_to_Template_instance (line 25) | def test_template_string_gets_converted_to_Template_instance(): function test_is_get_llm_model_answer_implemented (line 31) | def test_is_get_llm_model_answer_implemented(): function test_stream_response (line 41) | def test_stream_response(base_llm): function test_append_search_and_context (line 47) | def test_append_search_and_context(base_llm): function test_access_search_and_get_results (line 55) | def test_access_search_and_get_results(base_llm, mocker): FILE: embedchain/tests/llm/test_chat.py class TestApp (line 12) | class TestApp(unittest.TestCase): method setUp (line 13) | def setUp(self): method test_chat_with_memory (line 19) | def test_chat_with_memory(self, mock_get_answer, mock_retrieve): method test_template_replacement (line 47) | def test_template_replacement(self, mock_get_answer, mock_retrieve): method test_chat_with_where_in_params (line 72) | def test_chat_with_where_in_params(self): method test_chat_with_where_in_chat_config (line 89) | def test_chat_with_where_in_chat_config(self): FILE: embedchain/tests/llm/test_clarifai.py function clarifai_llm_config (line 9) | def clarifai_llm_config(monkeypatch): function test_clarifai__llm_get_llm_model_answer (line 18) | def test_clarifai__llm_get_llm_model_answer(clarifai_llm_config, mocker): FILE: embedchain/tests/llm/test_cohere.py function cohere_llm_config (line 10) | def cohere_llm_config(): function test_init_raises_value_error_without_api_key (line 17) | def test_init_raises_value_error_without_api_key(mocker): function test_get_llm_model_answer_raises_value_error_for_system_prompt (line 23) | def test_get_llm_model_answer_raises_value_error_for_system_prompt(coher... function test_get_llm_model_answer (line 30) | def test_get_llm_model_answer(cohere_llm_config, mocker): function test_get_llm_model_answer_with_token_usage (line 39) | def test_get_llm_model_answer_with_token_usage(cohere_llm_config, mocker): function test_get_answer_mocked_cohere (line 65) | def test_get_answer_mocked_cohere(cohere_llm_config, mocker): FILE: embedchain/tests/llm/test_generate_prompt.py class TestGeneratePrompt (line 8) | class TestGeneratePrompt(unittest.TestCase): method setUp (line 9) | def setUp(self): method test_generate_prompt_with_template (line 12) | def test_generate_prompt_with_template(self): method test_generate_prompt_with_contexts_list (line 38) | def test_generate_prompt_with_contexts_list(self): method test_generate_prompt_with_history (line 59) | def test_generate_prompt_with_history(self): FILE: embedchain/tests/llm/test_google.py function google_llm_config (line 8) | def google_llm_config(): function test_google_llm_init_missing_api_key (line 12) | def test_google_llm_init_missing_api_key(monkeypatch): function test_google_llm_init (line 18) | def test_google_llm_init(monkeypatch): function test_google_llm_get_llm_model_answer_with_system_prompt (line 26) | def test_google_llm_get_llm_model_answer_with_system_prompt(monkeypatch): function test_google_llm_get_llm_model_answer (line 34) | def test_google_llm_get_llm_model_answer(monkeypatch, google_llm_config): FILE: embedchain/tests/llm/test_gpt4all.py function config (line 9) | def config(): function gpt4all_with_config (line 22) | def gpt4all_with_config(config): function gpt4all_without_config (line 27) | def gpt4all_without_config(): function test_gpt4all_init_with_config (line 31) | def test_gpt4all_init_with_config(config, gpt4all_with_config): function test_gpt4all_init_without_config (line 42) | def test_gpt4all_init_without_config(gpt4all_without_config): function test_get_llm_model_answer (line 47) | def test_get_llm_model_answer(mocker, gpt4all_with_config): function test_gpt4all_model_switching (line 58) | def test_gpt4all_model_switching(gpt4all_with_config): FILE: embedchain/tests/llm/test_huggingface.py function huggingface_llm_config (line 11) | def huggingface_llm_config(): function huggingface_endpoint_config (line 19) | def huggingface_endpoint_config(): function test_init_raises_value_error_without_api_key (line 26) | def test_init_raises_value_error_without_api_key(mocker): function test_get_llm_model_answer_raises_value_error_for_system_prompt (line 32) | def test_get_llm_model_answer_raises_value_error_for_system_prompt(huggi... function test_top_p_value_within_range (line 39) | def test_top_p_value_within_range(): function test_dependency_is_imported (line 45) | def test_dependency_is_imported(): function test_get_llm_model_answer (line 54) | def test_get_llm_model_answer(huggingface_llm_config, mocker): function test_hugging_face_mock (line 63) | def test_hugging_face_mock(huggingface_llm_config, mocker): function test_custom_endpoint (line 74) | def test_custom_endpoint(huggingface_endpoint_config, mocker): FILE: embedchain/tests/llm/test_jina.py function config (line 11) | def config(): function test_init_raises_value_error_without_api_key (line 18) | def test_init_raises_value_error_without_api_key(mocker): function test_get_llm_model_answer (line 24) | def test_get_llm_model_answer(config, mocker): function test_get_llm_model_answer_with_system_prompt (line 34) | def test_get_llm_model_answer_with_system_prompt(config, mocker): function test_get_llm_model_answer_empty_prompt (line 45) | def test_get_llm_model_answer_empty_prompt(config, mocker): function test_get_llm_model_answer_with_streaming (line 55) | def test_get_llm_model_answer_with_streaming(config, mocker): function test_get_llm_model_answer_without_system_prompt (line 67) | def test_get_llm_model_answer_without_system_prompt(config, mocker): FILE: embedchain/tests/llm/test_llama2.py function llama2_llm (line 9) | def llama2_llm(): function test_init_raises_value_error_without_api_key (line 15) | def test_init_raises_value_error_without_api_key(mocker): function test_get_llm_model_answer_raises_value_error_for_system_prompt (line 21) | def test_get_llm_model_answer_raises_value_error_for_system_prompt(llama... function test_get_llm_model_answer (line 27) | def test_get_llm_model_answer(llama2_llm, mocker): FILE: embedchain/tests/llm/test_mistralai.py function mistralai_llm_config (line 8) | def mistralai_llm_config(monkeypatch): function test_mistralai_llm_init_missing_api_key (line 14) | def test_mistralai_llm_init_missing_api_key(monkeypatch): function test_mistralai_llm_init (line 20) | def test_mistralai_llm_init(monkeypatch): function test_get_llm_model_answer (line 26) | def test_get_llm_model_answer(monkeypatch, mistralai_llm_config): function test_get_llm_model_answer_with_system_prompt (line 37) | def test_get_llm_model_answer_with_system_prompt(monkeypatch, mistralai_... function test_get_llm_model_answer_empty_prompt (line 46) | def test_get_llm_model_answer_empty_prompt(monkeypatch, mistralai_llm_co... function test_get_llm_model_answer_without_system_prompt (line 54) | def test_get_llm_model_answer_without_system_prompt(monkeypatch, mistral... function test_get_llm_model_answer_with_token_usage (line 63) | def test_get_llm_model_answer_with_token_usage(monkeypatch, mistralai_ll... FILE: embedchain/tests/llm/test_ollama.py function ollama_llm_config (line 9) | def ollama_llm_config(): function test_get_llm_model_answer (line 14) | def test_get_llm_model_answer(ollama_llm_config, mocker): function test_get_answer_mocked_ollama (line 24) | def test_get_answer_mocked_ollama(ollama_llm_config, mocker): function test_get_llm_model_answer_with_streaming (line 37) | def test_get_llm_model_answer_with_streaming(ollama_llm_config, mocker): FILE: embedchain/tests/llm/test_openai.py function env_config (line 12) | def env_config(): function config (line 20) | def config(env_config): function test_get_llm_model_answer (line 34) | def test_get_llm_model_answer(config, mocker): function test_get_llm_model_answer_with_system_prompt (line 44) | def test_get_llm_model_answer_with_system_prompt(config, mocker): function test_get_llm_model_answer_empty_prompt (line 55) | def test_get_llm_model_answer_empty_prompt(config, mocker): function test_get_llm_model_answer_with_token_usage (line 65) | def test_get_llm_model_answer_with_token_usage(config, mocker): function test_get_llm_model_answer_with_streaming (line 94) | def test_get_llm_model_answer_with_streaming(config, mocker): function test_get_llm_model_answer_without_system_prompt (line 106) | def test_get_llm_model_answer_without_system_prompt(config, mocker): function test_get_llm_model_answer_with_special_headers (line 126) | def test_get_llm_model_answer_with_special_headers(config, mocker): function test_get_llm_model_answer_with_model_kwargs (line 147) | def test_get_llm_model_answer_with_model_kwargs(config, mocker): function test_get_llm_model_answer_with_tools (line 174) | def test_get_llm_model_answer_with_tools(config, mocker, mock_return, ex... function test_get_llm_model_answer_with_http_client_proxies (line 200) | def test_get_llm_model_answer_with_http_client_proxies(env_config, mocker): function test_get_llm_model_answer_with_http_async_client_proxies (line 235) | def test_get_llm_model_answer_with_http_async_client_proxies(env_config,... FILE: embedchain/tests/llm/test_query.py function app (line 12) | def app(): function test_query (line 19) | def test_query(app): function test_query_config_app_passing (line 35) | def test_query_config_app_passing(mock_get_answer): function test_query_with_where_in_params (line 50) | def test_query_with_where_in_params(app): function test_query_with_where_in_query_config (line 65) | def test_query_with_where_in_query_config(app): FILE: embedchain/tests/llm/test_together.py function together_llm_config (line 10) | def together_llm_config(): function test_init_raises_value_error_without_api_key (line 17) | def test_init_raises_value_error_without_api_key(mocker): function test_get_llm_model_answer_raises_value_error_for_system_prompt (line 23) | def test_get_llm_model_answer_raises_value_error_for_system_prompt(toget... function test_get_llm_model_answer (line 30) | def test_get_llm_model_answer(together_llm_config, mocker): function test_get_llm_model_answer_with_token_usage (line 39) | def test_get_llm_model_answer_with_token_usage(together_llm_config, mock... function test_get_answer_mocked_together (line 65) | def test_get_answer_mocked_together(together_llm_config, mocker): FILE: embedchain/tests/llm/test_vertex_ai.py function setup_database (line 12) | def setup_database(): function vertexai_llm (line 17) | def vertexai_llm(): function test_get_llm_model_answer (line 22) | def test_get_llm_model_answer(vertexai_llm): function test_get_llm_model_answer_with_token_usage (line 30) | def test_get_llm_model_answer_with_token_usage(vertexai_llm): function test_get_answer (line 56) | def test_get_answer(mock_chat_vertexai, vertexai_llm, caplog): function test_get_messages (line 69) | def test_get_messages(vertexai_llm): FILE: embedchain/tests/loaders/test_audio.py function setup_audio_loader (line 15) | def setup_audio_loader(mocker): function test_initialization (line 33) | def test_initialization(setup_audio_loader): function test_load_data_from_url (line 42) | def test_load_data_from_url(setup_audio_loader): function test_load_data_from_file (line 73) | def test_load_data_from_file(setup_audio_loader): FILE: embedchain/tests/loaders/test_csv.py function test_load_data (line 13) | def test_load_data(delimiter): function test_load_data_with_file_uri (line 52) | def test_load_data_with_file_uri(delimiter): function test_get_file_content (line 91) | def test_get_file_content(content): function test_get_file_content_http (line 98) | def test_get_file_content_http(content): FILE: embedchain/tests/loaders/test_discourse.py function discourse_loader_config (line 8) | def discourse_loader_config(): function discourse_loader (line 15) | def discourse_loader(discourse_loader_config): function test_discourse_loader_init_with_valid_config (line 19) | def test_discourse_loader_init_with_valid_config(): function test_discourse_loader_init_with_missing_config (line 25) | def test_discourse_loader_init_with_missing_config(): function test_discourse_loader_init_with_missing_domain (line 30) | def test_discourse_loader_init_with_missing_domain(): function test_discourse_loader_check_query_with_valid_query (line 36) | def test_discourse_loader_check_query_with_valid_query(discourse_loader): function test_discourse_loader_check_query_with_empty_query (line 40) | def test_discourse_loader_check_query_with_empty_query(discourse_loader): function test_discourse_loader_check_query_with_invalid_query_type (line 45) | def test_discourse_loader_check_query_with_invalid_query_type(discourse_... function test_discourse_loader_load_post_with_valid_post_id (line 50) | def test_discourse_loader_load_post_with_valid_post_id(discourse_loader,... function test_discourse_loader_load_data_with_valid_query (line 69) | def test_discourse_loader_load_data_with_valid_query(discourse_loader, m... FILE: embedchain/tests/loaders/test_docs_site.py function mock_requests_get (line 11) | def mock_requests_get(): function docs_site_loader (line 17) | def docs_site_loader(): function test_get_child_links_recursive (line 21) | def test_get_child_links_recursive(mock_requests_get, docs_site_loader): function test_get_child_links_recursive_status_not_200 (line 39) | def test_get_child_links_recursive_status_not_200(mock_requests_get, doc... function test_get_all_urls (line 49) | def test_get_all_urls(mock_requests_get, docs_site_loader): function test_load_data_from_url (line 69) | def test_load_data_from_url(mock_requests_get, docs_site_loader): function test_load_data_from_url_status_not_200 (line 91) | def test_load_data_from_url_status_not_200(mock_requests_get, docs_site_... function test_load_data (line 102) | def test_load_data(mock_requests_get, docs_site_loader): function test_if_response_status_not_200 (line 120) | def test_if_response_status_not_200(mock_requests_get, docs_site_loader): FILE: embedchain/tests/loaders/test_docs_site_loader.py function test_load_data_gets_by_selectors_and_ignored_tags (line 93) | def test_load_data_gets_by_selectors_and_ignored_tags(selectee, ignored_... function test_load_data_gets_child_links_recursively (line 134) | def test_load_data_gets_child_links_recursively(loader, mocked_responses... function test_load_data_fails_to_fetch_website (line 184) | def test_load_data_fails_to_fetch_website(loader, mocked_responses, mock... function loader (line 209) | def loader(): function mocked_responses (line 216) | def mocked_responses(): FILE: embedchain/tests/loaders/test_docx_file.py function mock_docx2txt_loader (line 10) | def mock_docx2txt_loader(): function docx_file_loader (line 16) | def docx_file_loader(): function test_load_data (line 20) | def test_load_data(mock_docx2txt_loader, docx_file_loader): FILE: embedchain/tests/loaders/test_dropbox.py function setup_dropbox_loader (line 11) | def setup_dropbox_loader(mocker): function test_initialization (line 25) | def test_initialization(setup_dropbox_loader): function test_download_folder (line 31) | def test_download_folder(setup_dropbox_loader, mocker): function test_generate_dir_id_from_all_paths (line 44) | def test_generate_dir_id_from_all_paths(setup_dropbox_loader, mocker): function test_clean_directory (line 55) | def test_clean_directory(setup_dropbox_loader, mocker): function test_load_data (line 65) | def test_load_data(mocker, setup_dropbox_loader, tmp_path): FILE: embedchain/tests/loaders/test_excel_file.py function excel_file_loader (line 10) | def excel_file_loader(): function test_load_data (line 14) | def test_load_data(excel_file_loader): FILE: embedchain/tests/loaders/test_github.py function mock_github_loader_config (line 7) | def mock_github_loader_config(): function mock_github_loader (line 14) | def mock_github_loader(mocker, mock_github_loader_config): function test_github_loader_init (line 20) | def test_github_loader_init(mocker, mock_github_loader_config): function test_github_loader_init_empty_config (line 26) | def test_github_loader_init_empty_config(mocker): function test_github_loader_init_missing_token (line 31) | def test_github_loader_init_missing_token(): FILE: embedchain/tests/loaders/test_gmail.py function mock_beautifulsoup (line 7) | def mock_beautifulsoup(mocker): function gmail_loader (line 12) | def gmail_loader(mock_beautifulsoup): function test_load_data_file_not_found (line 16) | def test_load_data_file_not_found(gmail_loader, mocker): function test_load_data (line 23) | def test_load_data(gmail_loader, mocker): FILE: embedchain/tests/loaders/test_google_drive.py function google_drive_folder_loader (line 7) | def google_drive_folder_loader(): function test_load_data_invalid_drive_url (line 11) | def test_load_data_invalid_drive_url(google_drive_folder_loader): function test_load_data_incorrect_drive_url (line 22) | def test_load_data_incorrect_drive_url(google_drive_folder_loader): function test_load_data (line 31) | def test_load_data(google_drive_folder_loader): FILE: embedchain/tests/loaders/test_json.py function test_load_data (line 8) | def test_load_data(mocker): function test_load_data_url (line 39) | def test_load_data_url(mocker): function test_load_data_invalid_string_content (line 77) | def test_load_data_invalid_string_content(mocker): function test_load_data_invalid_url (line 87) | def test_load_data_invalid_url(mocker): function test_load_data_from_json_string (line 100) | def test_load_data_from_json_string(mocker): FILE: embedchain/tests/loaders/test_local_qna_pair.py function qna_pair_loader (line 9) | def qna_pair_loader(): function test_load_data (line 13) | def test_load_data(qna_pair_loader): FILE: embedchain/tests/loaders/test_local_text.py function text_loader (line 9) | def text_loader(): function test_load_data (line 13) | def test_load_data(text_loader): FILE: embedchain/tests/loaders/test_mdx.py function mdx_loader (line 10) | def mdx_loader(): function test_load_data (line 14) | def test_load_data(mdx_loader): FILE: embedchain/tests/loaders/test_mysql.py function mysql_loader (line 10) | def mysql_loader(mocker): function test_mysql_loader_initialization (line 23) | def test_mysql_loader_initialization(mysql_loader): function test_mysql_loader_invalid_config (line 29) | def test_mysql_loader_invalid_config(): function test_mysql_loader_setup_loader_successful (line 34) | def test_mysql_loader_setup_loader_successful(mysql_loader): function test_mysql_loader_setup_loader_connection_error (line 39) | def test_mysql_loader_setup_loader_connection_error(mysql_loader, mocker): function test_mysql_loader_check_query_successful (line 45) | def test_mysql_loader_check_query_successful(mysql_loader): function test_mysql_loader_check_query_invalid (line 50) | def test_mysql_loader_check_query_invalid(mysql_loader): function test_mysql_loader_load_data_successful (line 55) | def test_mysql_loader_load_data_successful(mysql_loader, mocker): function test_mysql_loader_load_data_invalid_query (line 75) | def test_mysql_loader_load_data_invalid_query(mysql_loader): FILE: embedchain/tests/loaders/test_notion.py function notion_loader (line 11) | def notion_loader(): function test_load_data (line 16) | def test_load_data(notion_loader): FILE: embedchain/tests/loaders/test_openapi.py function openapi_loader (line 7) | def openapi_loader(): function test_load_data (line 11) | def test_load_data(openapi_loader, mocker): FILE: embedchain/tests/loaders/test_pdf_file.py function test_load_data (line 5) | def test_load_data(loader, mocker): function test_load_data_fails_to_find_data (line 24) | def test_load_data_fails_to_find_data(loader, mocker): function loader (line 33) | def loader(): FILE: embedchain/tests/loaders/test_postgres.py function postgres_loader (line 10) | def postgres_loader(mocker): function test_postgres_loader_initialization (line 17) | def test_postgres_loader_initialization(postgres_loader): function test_postgres_loader_invalid_config (line 22) | def test_postgres_loader_invalid_config(): function test_load_data (line 27) | def test_load_data(postgres_loader, monkeypatch): function test_load_data_exception (line 44) | def test_load_data_exception(postgres_loader, monkeypatch): function test_close_connection (line 57) | def test_close_connection(postgres_loader): FILE: embedchain/tests/loaders/test_slack.py function slack_loader (line 7) | def slack_loader(mocker, monkeypatch): function test_slack_loader_initialization (line 18) | def test_slack_loader_initialization(slack_loader): function test_slack_loader_setup_loader (line 23) | def test_slack_loader_setup_loader(slack_loader): function test_slack_loader_check_query (line 29) | def test_slack_loader_check_query(slack_loader): function test_slack_loader_load_data (line 39) | def test_slack_loader_load_data(slack_loader, mocker): FILE: embedchain/tests/loaders/test_web_page.py function web_page_loader (line 11) | def web_page_loader(): function test_load_data (line 15) | def test_load_data(web_page_loader): function test_get_clean_content_excludes_unnecessary_info (line 50) | def test_get_clean_content_excludes_unnecessary_info(web_page_loader): function test_fetch_reference_links_success (line 121) | def test_fetch_reference_links_success(web_page_loader): function test_fetch_reference_links_failure (line 140) | def test_fetch_reference_links_failure(web_page_loader): FILE: embedchain/tests/loaders/test_xml.py function test_load_data (line 38) | def test_load_data(xml: str): FILE: embedchain/tests/loaders/test_youtube_video.py function youtube_video_loader (line 10) | def youtube_video_loader(): function test_load_data (line 14) | def test_load_data(youtube_video_loader): function test_load_data_with_empty_doc (line 46) | def test_load_data_with_empty_doc(youtube_video_loader): FILE: embedchain/tests/memory/test_chat_memory.py function chat_memory_instance (line 9) | def chat_memory_instance(): function test_add_chat_memory (line 13) | def test_add_chat_memory(chat_memory_instance): function test_get (line 29) | def test_get(chat_memory_instance): function test_delete_chat_history (line 52) | def test_delete_chat_history(chat_memory_instance): function close_connection (line 89) | def close_connection(chat_memory_instance): FILE: embedchain/tests/memory/test_memory_messages.py function test_ec_base_message (line 4) | def test_ec_base_message(): function test_ec_base_chat_message (line 19) | def test_ec_base_chat_message(): FILE: embedchain/tests/models/test_data_type.py function test_subclass_types_in_data_type (line 9) | def test_subclass_types_in_data_type(): function test_data_type_in_subclasses (line 24) | def test_data_type_in_subclasses(): FILE: embedchain/tests/telemetry/test_posthog.py class TestAnonymousTelemetry (line 7) | class TestAnonymousTelemetry: method test_init (line 8) | def test_init(self, mocker): method test_init_with_disabled_telemetry (line 19) | def test_init_with_disabled_telemetry(self, mocker): method test_get_user_id (line 25) | def test_get_user_id(self, mocker, tmpdir): method test_capture (line 36) | def test_capture(self, mocker): method test_capture_with_exception (line 55) | def test_capture_with_exception(self, mocker, caplog): FILE: embedchain/tests/test_app.py function app (line 15) | def app(): function test_app (line 21) | def test_app(app): class TestConfigForAppComponents (line 27) | class TestConfigForAppComponents: method test_constructor_config (line 28) | def test_constructor_config(self): method test_component_config (line 34) | def test_component_config(self): class TestAppFromConfig (line 41) | class TestAppFromConfig: method load_config_data (line 42) | def load_config_data(self, yaml_path): method test_from_chroma_config (line 46) | def test_from_chroma_config(self, mocker): method test_from_opensource_config (line 80) | def test_from_opensource_config(self, mocker): FILE: embedchain/tests/test_client.py class TestClient (line 6) | class TestClient: method mock_requests_post (line 8) | def mock_requests_post(self, mocker): method test_valid_api_key (line 11) | def test_valid_api_key(self, mock_requests_post): method test_invalid_api_key (line 16) | def test_invalid_api_key(self, mock_requests_post): method test_update_valid_api_key (line 21) | def test_update_valid_api_key(self, mock_requests_post): method test_clear_api_key (line 27) | def test_clear_api_key(self, mock_requests_post): method test_save_api_key (line 33) | def test_save_api_key(self, mock_requests_post): method test_load_api_key_from_config (line 40) | def test_load_api_key_from_config(self, mocker): method test_load_invalid_api_key_from_config (line 45) | def test_load_invalid_api_key_from_config(self, mocker): method test_load_missing_api_key_from_config (line 50) | def test_load_missing_api_key_from_config(self, mocker): FILE: embedchain/tests/test_factory.py class TestFactories (line 18) | class TestFactories: method test_llm_factory_create (line 26) | def test_llm_factory_create(self, provider_name, config_data, expected... method test_embedder_factory_create (line 46) | def test_embedder_factory_create(self, mocker, provider_name, config_d... method test_vectordb_factory_create (line 63) | def test_vectordb_factory_create(self, mocker, provider_name, config_d... FILE: embedchain/tests/test_utils.py function test_all_config_yamls (line 27) | def test_all_config_yamls(): FILE: embedchain/tests/vectordb/test_chroma_db.py function chroma_db (line 16) | def chroma_db(): function app_with_settings (line 21) | def app_with_settings(): function cleanup_db (line 29) | def cleanup_db(): function test_chroma_db_init_with_host_and_port (line 38) | def test_chroma_db_init_with_host_and_port(mock_client): function test_chroma_db_init_with_basic_auth (line 46) | def test_chroma_db_init_with_basic_auth(mock_client): function test_app_init_with_host_and_port (line 70) | def test_app_init_with_host_and_port(mock_client): function test_app_init_with_host_and_port_none (line 84) | def test_app_init_with_host_and_port_none(mock_client): function test_chroma_db_duplicates_throw_warning (line 93) | def test_chroma_db_duplicates_throw_warning(caplog): function test_chroma_db_duplicates_collections_no_warning (line 103) | def test_chroma_db_duplicates_collections_no_warning(caplog): function test_chroma_db_collection_init_with_default_collection (line 117) | def test_chroma_db_collection_init_with_default_collection(): function test_chroma_db_collection_init_with_custom_collection (line 123) | def test_chroma_db_collection_init_with_custom_collection(): function test_chroma_db_collection_set_collection_name (line 130) | def test_chroma_db_collection_set_collection_name(): function test_chroma_db_collection_changes_encapsulated (line 137) | def test_chroma_db_collection_changes_encapsulated(): function test_chroma_db_collection_collections_are_persistent (line 157) | def test_chroma_db_collection_collections_are_persistent(): function test_chroma_db_collection_parallel_collections (line 172) | def test_chroma_db_collection_parallel_collections(): function test_chroma_db_collection_ids_share_collections (line 205) | def test_chroma_db_collection_ids_share_collections(): function test_chroma_db_collection_reset (line 224) | def test_chroma_db_collection_reset(): FILE: embedchain/tests/vectordb/test_elasticsearch_db.py class TestEsDB (line 11) | class TestEsDB(unittest.TestCase): method test_setUp (line 13) | def test_setUp(self, mock_client): method test_query (line 23) | def test_query(self, mock_client): method test_init_without_url (line 73) | def test_init_without_url(self): method test_init_with_invalid_es_config (line 83) | def test_init_with_invalid_es_config(self): FILE: embedchain/tests/vectordb/test_lancedb.py function lancedb (line 15) | def lancedb(): function app_with_settings (line 20) | def app_with_settings(): function cleanup_db (line 28) | def cleanup_db(): function test_lancedb_duplicates_throw_warning (line 37) | def test_lancedb_duplicates_throw_warning(caplog): function test_lancedb_duplicates_collections_no_warning (line 47) | def test_lancedb_duplicates_collections_no_warning(caplog): function test_lancedb_collection_init_with_default_collection (line 61) | def test_lancedb_collection_init_with_default_collection(): function test_lancedb_collection_init_with_custom_collection (line 67) | def test_lancedb_collection_init_with_custom_collection(): function test_lancedb_collection_set_collection_name (line 74) | def test_lancedb_collection_set_collection_name(): function test_lancedb_collection_changes_encapsulated (line 81) | def test_lancedb_collection_changes_encapsulated(): function test_lancedb_collection_collections_are_persistent (line 100) | def test_lancedb_collection_collections_are_persistent(): function test_lancedb_collection_parallel_collections (line 115) | def test_lancedb_collection_parallel_collections(): function test_lancedb_collection_ids_share_collections (line 149) | def test_lancedb_collection_ids_share_collections(): function test_lancedb_collection_reset (line 172) | def test_lancedb_collection_reset(): function generate_embeddings (line 210) | def generate_embeddings(dummy_embed, embed_size): FILE: embedchain/tests/vectordb/test_pinecone.py function pinecone_pod_config (line 8) | def pinecone_pod_config(): function pinecone_serverless_config (line 18) | def pinecone_serverless_config(): function test_pinecone_init_without_config (line 30) | def test_pinecone_init_without_config(monkeypatch): function test_pinecone_init_with_config (line 42) | def test_pinecone_init_with_config(pinecone_pod_config, monkeypatch): class MockListIndexes (line 60) | class MockListIndexes: method names (line 61) | def names(self): class MockPineconeIndex (line 65) | class MockPineconeIndex: method __init__ (line 68) | def __init__(*args, **kwargs): method upsert (line 71) | def upsert(self, chunk, **kwargs): method delete (line 75) | def delete(self, *args, **kwargs): method query (line 78) | def query(self, *args, **kwargs): method fetch (line 98) | def fetch(self, *args, **kwargs): method describe_index_stats (line 114) | def describe_index_stats(self, *args, **kwargs): class MockPineconeClient (line 118) | class MockPineconeClient: method __init__ (line 119) | def __init__(*args, **kwargs): method list_indexes (line 122) | def list_indexes(self): method create_index (line 125) | def create_index(self, *args, **kwargs): method Index (line 128) | def Index(self, *args, **kwargs): method delete_index (line 131) | def delete_index(self, *args, **kwargs): class MockPinecone (line 135) | class MockPinecone: method __init__ (line 136) | def __init__(*args, **kwargs): method Pinecone (line 139) | def Pinecone(*args, **kwargs): method PodSpec (line 142) | def PodSpec(*args, **kwargs): method ServerlessSpec (line 145) | def ServerlessSpec(*args, **kwargs): class MockEmbedder (line 149) | class MockEmbedder: method embedding_fn (line 150) | def embedding_fn(self, documents): function test_setup_pinecone_index (line 154) | def test_setup_pinecone_index(pinecone_pod_config, pinecone_serverless_c... function test_get (line 174) | def test_get(monkeypatch): function test_add (line 188) | def test_add(monkeypatch): function test_query (line 206) | def test_query(monkeypatch): FILE: embedchain/tests/vectordb/test_qdrant.py function mock_embedding_fn (line 15) | def mock_embedding_fn(texts: list[str]) -> list[list[float]]: class TestQdrantDB (line 20) | class TestQdrantDB(unittest.TestCase): method test_incorrect_config_throws_error (line 23) | def test_incorrect_config_throws_error(self): method test_initialize (line 29) | def test_initialize(self, qdrant_client_mock): method test_get (line 45) | def test_get(self, qdrant_client_mock): method test_add (line 65) | def test_add(self, uuid_mock, qdrant_client_mock): method test_query (line 103) | def test_query(self, qdrant_client_mock): method test_count (line 134) | def test_count(self, qdrant_client_mock): method test_reset (line 149) | def test_reset(self, qdrant_client_mock): FILE: embedchain/tests/vectordb/test_weaviate.py function mock_embedding_fn (line 11) | def mock_embedding_fn(texts: list[str]) -> list[list[float]]: class TestWeaviateDb (line 16) | class TestWeaviateDb(unittest.TestCase): method test_incorrect_config_throws_error (line 17) | def test_incorrect_config_throws_error(self): method test_initialize (line 23) | def test_initialize(self, weaviate_mock): method test_get_or_create_db (line 95) | def test_get_or_create_db(self, weaviate_mock): method test_add (line 112) | def test_add(self, weaviate_mock): method test_query_without_where (line 146) | def test_query_without_where(self, weaviate_mock): method test_query_with_where (line 169) | def test_query_with_where(self, weaviate_mock): method test_reset (line 196) | def test_reset(self, weaviate_mock): method test_count (line 219) | def test_count(self, weaviate_mock): FILE: embedchain/tests/vectordb/test_zilliz_db.py class TestZillizVectorDBConfig (line 14) | class TestZillizVectorDBConfig: method test_init_with_uri_and_token (line 16) | def test_init_with_uri_and_token(self): method test_init_without_uri (line 30) | def test_init_without_uri(self): method test_init_without_token (line 43) | def test_init_without_token(self): class TestZillizVectorDB (line 56) | class TestZillizVectorDB: method mock_config (line 59) | def mock_config(self, mocker): method test_zilliz_vector_db_setup (line 64) | def test_zilliz_vector_db_setup(self, mock_connect, mock_client, mock_... class TestZillizDBCollection (line 77) | class TestZillizDBCollection: method mock_config (line 80) | def mock_config(self, mocker): method mock_embedder (line 84) | def mock_embedder(self, mocker): method test_init_with_default_collection (line 88) | def test_init_with_default_collection(self): method test_init_with_custom_collection (line 98) | def test_init_with_custom_collection(self): method test_query (line 111) | def test_query(self, mock_connect, mock_client, mock_embedder, mock_co... FILE: evaluation/evals.py function process_item (line 12) | def process_item(item_data): function main (line 45) | def main(): FILE: evaluation/metrics/llm_judge.py function evaluate_llm_judge (line 39) | def evaluate_llm_judge(question, gold_answer, generated_answer): function main (line 58) | def main(): FILE: evaluation/metrics/utils.py function simple_tokenize (line 42) | def simple_tokenize(text): function calculate_rouge_scores (line 49) | def calculate_rouge_scores(prediction: str, reference: str) -> Dict[str,... function calculate_bleu_scores (line 60) | def calculate_bleu_scores(prediction: str, reference: str) -> Dict[str, ... function calculate_bert_scores (line 80) | def calculate_bert_scores(prediction: str, reference: str) -> Dict[str, ... function calculate_meteor_score (line 90) | def calculate_meteor_score(prediction: str, reference: str) -> float: function calculate_sentence_similarity (line 99) | def calculate_sentence_similarity(prediction: str, reference: str) -> fl... function calculate_metrics (line 116) | def calculate_metrics(prediction: str, reference: str) -> Dict[str, float]: function aggregate_metrics (line 167) | def aggregate_metrics( FILE: evaluation/run_experiments.py class Experiment (line 14) | class Experiment: method __init__ (line 15) | def __init__(self, technique_type, chunk_size): method run (line 19) | def run(self): function main (line 23) | def main(): FILE: evaluation/src/langmem.py function get_answer (line 25) | def get_answer(question, speaker_1_user_id, speaker_1_memories, speaker_... function prompt (line 42) | def prompt(state): class LangMem (line 59) | class LangMem: method __init__ (line 60) | def __init__( method add_memory (line 82) | def add_memory(self, message, config): method search_memory (line 85) | def search_memory(self, query, config): class LangMemManager (line 96) | class LangMemManager: method __init__ (line 97) | def __init__(self, dataset_path): method process_all_conversations (line 102) | def process_all_conversations(self, output_file_path): FILE: evaluation/src/memzero/add.py class MemoryADD (line 45) | class MemoryADD: method __init__ (line 46) | def __init__(self, data_path=None, batch_size=2, is_graph=False): method load_data (line 61) | def load_data(self): method add_memory (line 66) | def add_memory(self, user_id, message, metadata, retries=3): method add_memories_for_speaker (line 80) | def add_memories_for_speaker(self, speaker, messages, timestamp, desc): method process_conversation (line 85) | def process_conversation(self, item, idx): method process_all_conversations (line 134) | def process_all_conversations(self, max_workers=10): FILE: evaluation/src/memzero/search.py class MemorySearch (line 18) | class MemorySearch: method __init__ (line 19) | def __init__(self, output_path="results.json", top_k=10, filter_memori... method search_memory (line 37) | def search_memory(self, user_id, query, max_retries=3, retry_delay=1): method answer_question (line 90) | def answer_question(self, speaker_1_user_id, speaker_2_user_id, questi... method process_question (line 129) | def process_question(self, val, speaker_a_user_id, speaker_b_user_id): method process_data_file (line 171) | def process_data_file(self, file_path): method process_questions_parallel (line 198) | def process_questions_parallel(self, qa_list, speaker_a_user_id, speak... FILE: evaluation/src/openai/predict.py class OpenAIPredict (line 55) | class OpenAIPredict: method __init__ (line 56) | def __init__(self, model="gpt-4o-mini"): method search_memory (line 61) | def search_memory(self, idx): method process_question (line 67) | def process_question(self, val, idx): method answer_question (line 90) | def answer_question(self, idx, question): method process_data_file (line 104) | def process_data_file(self, file_path, output_file_path): FILE: evaluation/src/rag.py class RAGManager (line 26) | class RAGManager: method __init__ (line 27) | def __init__(self, data_path="dataset/locomo10_rag.json", chunk_size=5... method generate_response (line 34) | def generate_response(self, question, context): method clean_chat_history (line 68) | def clean_chat_history(self, chat_history): method calculate_embedding (line 75) | def calculate_embedding(self, document): method calculate_similarity (line 79) | def calculate_similarity(self, embedding1, embedding2): method search (line 82) | def search(self, query, chunks, embeddings, k=1): method create_chunks (line 114) | def create_chunks(self, chat_history, chunk_size=500): method process_all_conversations (line 144) | def process_all_conversations(self, output_file_path): FILE: evaluation/src/zep/add.py class ZepAdd (line 13) | class ZepAdd: method __init__ (line 14) | def __init__(self, data_path=None): method load_data (line 21) | def load_data(self): method process_conversation (line 26) | def process_conversation(self, run_id, item, idx): method process_all_conversations (line 63) | def process_all_conversations(self, run_id): FILE: evaluation/src/zep/search.py class ZepSearch (line 34) | class ZepSearch: method __init__ (line 35) | def __init__(self): method format_edge_date_range (line 40) | def format_edge_date_range(self, edge: EntityEdge) -> str: method compose_search_context (line 44) | def compose_search_context(self, edges: list[EntityEdge], nodes: list[... method search_memory (line 49) | def search_memory(self, run_id, idx, query, max_retries=3, retry_delay... method process_question (line 76) | def process_question(self, run_id, val, idx): method answer_question (line 99) | def answer_question(self, run_id, idx, question): method process_data_file (line 113) | def process_data_file(self, file_path, run_id, output_file_path): FILE: examples/mem0-demo/app/api/chat/route.ts constant SYSTEM_HIGHLIGHT_PROMPT (line 10) | const SYSTEM_HIGHLIGHT_PROMPT = ` function POST (line 70) | async function POST(req: Request) { FILE: examples/mem0-demo/app/layout.tsx function RootLayout (line 20) | function RootLayout({ FILE: examples/mem0-demo/app/page.tsx function Page (line 3) | function Page() { FILE: examples/mem0-demo/components/assistant-ui/memory-indicator.tsx type Memory (line 14) | type Memory = { type MemoryIndicatorProps (line 21) | interface MemoryIndicatorProps { function MemoryIndicator (line 25) | function MemoryIndicator({ memories }: MemoryIndicatorProps) { FILE: examples/mem0-demo/components/assistant-ui/memory-ui.tsx type RetrievedMemory (line 5) | type RetrievedMemory = { type NewMemory (line 17) | type NewMemory = { type NewMemoryAnnotation (line 25) | type NewMemoryAnnotation = { type GetMemoryAnnotation (line 30) | type GetMemoryAnnotation = { type MemoryAnnotation (line 35) | type MemoryAnnotation = NewMemoryAnnotation | GetMemoryAnnotation; FILE: examples/mem0-demo/components/assistant-ui/theme-aware-logo.tsx function ThemeAwareLogo (line 7) | function ThemeAwareLogo({ FILE: examples/mem0-demo/components/assistant-ui/thread-list.tsx type ThreadListProps (line 24) | interface ThreadListProps { FILE: examples/mem0-demo/components/assistant-ui/thread.tsx type ThreadProps (line 50) | interface ThreadProps { type ThreadWelcomeProps (line 248) | interface ThreadWelcomeProps { type ThreadWelcomeSuggestionsProps (line 278) | interface ThreadWelcomeSuggestionsProps { type ComposerProps (line 325) | interface ComposerProps { FILE: examples/mem0-demo/components/assistant-ui/tooltip-icon-button.tsx type TooltipIconButtonProps (line 14) | type TooltipIconButtonProps = ButtonProps & { FILE: examples/mem0-demo/components/mem0/markdown.tsx type MarkdownRendererProps (line 15) | interface MarkdownRendererProps { FILE: examples/mem0-demo/components/mem0/theme-aware-logo.tsx function ThemeAwareLogo (line 8) | function ThemeAwareLogo({ FILE: examples/mem0-demo/components/ui/badge.tsx type BadgeProps (line 26) | interface BadgeProps function Badge (line 30) | function Badge({ className, variant, ...props }: BadgeProps) { FILE: examples/mem0-demo/components/ui/button.tsx type ButtonProps (line 37) | interface ButtonProps FILE: examples/mem0-demo/lib/utils.ts function cn (line 4) | function cn(...inputs: ClassValue[]) { FILE: examples/misc/diet_assistant_voice_cartesia.py function get_food_recommendation (line 46) | def get_food_recommendation(user_query: str, user_id): function initialize_food_memory (line 84) | def initialize_food_memory(user_id): FILE: examples/misc/fitness_checker.py function store_user_preferences (line 28) | def store_user_preferences(conversation: list, user_id: str = USER_ID): function fitness_coach (line 34) | def fitness_coach(user_input: str, user_id: str = USER_ID): FILE: examples/misc/healthcare_assistant_google_adk.py function save_patient_info (line 19) | def save_patient_info(information: str) -> dict: function retrieve_patient_info (line 37) | def retrieve_patient_info(query: str) -> str: function schedule_appointment (line 61) | def schedule_appointment(date: str, time: str, reason: str) -> dict: function call_agent_async (line 113) | async def call_agent_async(query, runner, user_id, session_id): function run_conversation (line 136) | async def run_conversation(): function interactive_mode (line 168) | async def interactive_mode(): FILE: examples/misc/movie_recommendation_grok3.py function recommend_movie_with_memory (line 46) | def recommend_movie_with_memory(user_id: str, user_query: str): FILE: examples/misc/multillm_memory.py function get_team_knowledge (line 51) | def get_team_knowledge(topic: str, project_id: str) -> str: function research_with_specialist (line 67) | def research_with_specialist(task: str, specialist: str, project_id: str... function show_team_knowledge (line 107) | def show_team_knowledge(project_id: str): function demo_research_team (line 132) | def demo_research_team(): FILE: examples/misc/personal_assistant_agno.py function chat_user (line 32) | def chat_user(user_input: str = None, user_id: str = "user_123", image_p... FILE: examples/misc/personalized_search.py function setup_user_history (line 41) | def setup_user_history(user_id): function get_user_context (line 72) | def get_user_context(user_id, query): function create_personalized_search_agent (line 100) | def create_personalized_search_agent(user_context): function conduct_personalized_search (line 155) | def conduct_personalized_search(user_id, query): function store_search_interaction (line 204) | def store_search_interaction(user_id, original_query, agent_response): function personalized_search_agent (line 220) | def personalized_search_agent(): FILE: examples/misc/strands_agent_aws_elasticache_neptune.py function get_assistant_response (line 90) | def get_assistant_response(messages): function store_memory_tool (line 117) | def store_memory_tool(information: str, user_id: str = "user", category:... function store_graph_memory_tool (line 147) | def store_graph_memory_tool(information: str, user_id: str = "user", cat... function search_memory_tool (line 179) | def search_memory_tool(query: str, user_id: str = "user") -> str: function search_graph_memory_tool (line 225) | def search_graph_memory_tool(query: str, user_id: str = "user") -> str: function get_all_memories_tool (line 280) | def get_all_memories_tool(user_id: str = "user") -> str: function store_memory (line 318) | def store_memory(messages, user_id="alice", category="conversation"): function get_agent_metrics (line 338) | def get_agent_metrics(result): FILE: examples/misc/study_buddy.py function upload_pdf (line 32) | def upload_pdf(pdf_url: str, user_id: str): function study_buddy (line 39) | async def study_buddy(user_id: str, topic: str, user_input: str): function main (line 64) | async def main(): FILE: examples/misc/test.py function search_memory (line 16) | def search_memory(query: str, user_id: str) -> str: function save_memory (line 25) | def save_memory(content: str, user_id: str) -> str: function chat_with_handoffs (line 62) | def chat_with_handoffs(user_input: str, user_id: str) -> str: FILE: examples/misc/vllm_example.py function main (line 47) | def main(): FILE: examples/misc/voice_assistant_elevenlabs.py function store_user_preferences (line 41) | def store_user_preferences(user_id: str, conversation: list): function initialize_memory (line 47) | def initialize_memory(): function record_audio (line 119) | def record_audio(filename="input.wav", record_seconds=5): function transcribe_whisper (line 146) | def transcribe_whisper(audio_path): function get_agent_response (line 159) | def get_agent_response(user_input): function speak_response (line 196) | def speak_response(text): function run_voice_agent (line 205) | def run_voice_agent(): FILE: examples/multiagents/llamaindex_learning_system.py class MultiAgentLearningSystem (line 35) | class MultiAgentLearningSystem: method __init__ (line 43) | def __init__(self, student_id: str): method _setup_agents (line 53) | def _setup_agents(self): method start_learning_session (line 148) | async def start_learning_session(self, topic: str, student_message: st... method get_learning_history (line 163) | async def get_learning_history(self) -> str: function run_learning_agent (line 179) | async def run_learning_agent(): function main (line 205) | async def main(): FILE: examples/multimodal-demo/src/App.tsx function App (line 4) | function App() { FILE: examples/multimodal-demo/src/components/api-settings-popup.tsx function ApiSettingsPopup (line 9) | function ApiSettingsPopup(props: { isOpen: boolean, setIsOpen: Dispatch<... FILE: examples/multimodal-demo/src/components/ui/badge.tsx type BadgeProps (line 26) | interface BadgeProps function Badge (line 30) | function Badge({ className, variant, ...props }: BadgeProps) { FILE: examples/multimodal-demo/src/components/ui/button.tsx type ButtonProps (line 37) | interface ButtonProps FILE: examples/multimodal-demo/src/components/ui/input.tsx type InputProps (line 5) | interface InputProps FILE: examples/multimodal-demo/src/constants/messages.ts constant WELCOME_MESSAGE (line 3) | const WELCOME_MESSAGE: Message = { constant INVALID_CONFIG_MESSAGE (line 10) | const INVALID_CONFIG_MESSAGE: Message = { constant ERROR_MESSAGE (line 17) | const ERROR_MESSAGE: Message = { constant AI_MODELS (line 24) | const AI_MODELS = { type Provider (line 31) | type Provider = keyof typeof AI_MODELS; FILE: examples/multimodal-demo/src/contexts/GlobalContext.tsx type GlobalContextType (line 9) | interface GlobalContextType { FILE: examples/multimodal-demo/src/hooks/useAuth.ts type UseAuthReturn (line 4) | interface UseAuthReturn { FILE: examples/multimodal-demo/src/hooks/useChat.ts type UseChatProps (line 7) | interface UseChatProps { type UseChatReturn (line 14) | interface UseChatReturn { type MessageContent (line 21) | type MessageContent = string | { type PromptMessage (line 28) | interface PromptMessage { FILE: examples/multimodal-demo/src/hooks/useFileHandler.ts type UseFileHandlerReturn (line 5) | interface UseFileHandlerReturn { FILE: examples/multimodal-demo/src/libs/utils.ts function cn (line 4) | function cn(...inputs: ClassValue[]) { FILE: examples/multimodal-demo/src/page.tsx function Home (line 6) | function Home() { FILE: examples/multimodal-demo/src/pages/home.tsx function Home (line 10) | function Home() { FILE: examples/multimodal-demo/src/types.ts type Memory (line 2) | interface Memory { type Message (line 9) | interface Message { type FileInfo (line 18) | interface FileInfo { FILE: examples/multimodal-demo/useChat.ts type UseChatProps (line 7) | interface UseChatProps { type UseChatReturn (line 14) | interface UseChatReturn { type MessageContent (line 21) | type MessageContent = string | { type PromptMessage (line 28) | interface PromptMessage { FILE: examples/openai-inbuilt-tools/index.js function run (line 11) | async function run() { function main (line 37) | async function main(memory = false) { function addSampleMemories (line 66) | async function addSampleMemories() { FILE: examples/vercel-ai-sdk-chat-app/src/App.tsx function App (line 4) | function App() { FILE: examples/vercel-ai-sdk-chat-app/src/components/api-settings-popup.tsx function ApiSettingsPopup (line 9) | function ApiSettingsPopup(props: { isOpen: boolean, setIsOpen: Dispatch<... FILE: examples/vercel-ai-sdk-chat-app/src/components/ui/badge.tsx type BadgeProps (line 26) | interface BadgeProps function Badge (line 30) | function Badge({ className, variant, ...props }: BadgeProps) { FILE: examples/vercel-ai-sdk-chat-app/src/components/ui/button.tsx type ButtonProps (line 37) | interface ButtonProps FILE: examples/vercel-ai-sdk-chat-app/src/components/ui/input.tsx type InputProps (line 5) | interface InputProps FILE: examples/vercel-ai-sdk-chat-app/src/constants/messages.ts constant WELCOME_MESSAGE (line 3) | const WELCOME_MESSAGE: Message = { constant INVALID_CONFIG_MESSAGE (line 10) | const INVALID_CONFIG_MESSAGE: Message = { constant ERROR_MESSAGE (line 17) | const ERROR_MESSAGE: Message = { constant AI_MODELS (line 24) | const AI_MODELS = { type Provider (line 31) | type Provider = keyof typeof AI_MODELS; FILE: examples/vercel-ai-sdk-chat-app/src/contexts/GlobalContext.tsx type GlobalContextType (line 9) | interface GlobalContextType { FILE: examples/vercel-ai-sdk-chat-app/src/hooks/useAuth.ts type UseAuthReturn (line 4) | interface UseAuthReturn { FILE: examples/vercel-ai-sdk-chat-app/src/hooks/useChat.ts type UseChatProps (line 7) | interface UseChatProps { type UseChatReturn (line 14) | interface UseChatReturn { type MemoryResponse (line 21) | interface MemoryResponse { type MessageContent (line 28) | type MessageContent = type PromptMessage (line 33) | interface PromptMessage { FILE: examples/vercel-ai-sdk-chat-app/src/hooks/useFileHandler.ts type UseFileHandlerReturn (line 5) | interface UseFileHandlerReturn { FILE: examples/vercel-ai-sdk-chat-app/src/libs/utils.ts function cn (line 4) | function cn(...inputs: ClassValue[]) { FILE: examples/vercel-ai-sdk-chat-app/src/page.tsx function Home (line 6) | function Home() { FILE: examples/vercel-ai-sdk-chat-app/src/pages/home.tsx function Home (line 10) | function Home() { FILE: examples/vercel-ai-sdk-chat-app/src/types.ts type Memory (line 2) | interface Memory { type Message (line 9) | interface Message { type FileInfo (line 18) | interface FileInfo { FILE: examples/yt-assistant-chrome/src/background.js function saveConfig (line 114) | async function saveConfig(newConfig) { function validateApiKey (line 135) | async function validateApiKey(apiKey) { function sendChatRequest (line 157) | async function sendChatRequest(messages, model) { function mem0Integration (line 245) | function mem0Integration() { FILE: examples/yt-assistant-chrome/src/content.js function initializeMem0AI (line 19) | async function initializeMem0AI() { function getYouTubeVideoId (line 99) | function getYouTubeVideoId(url) { function fetchAndLogTranscript (line 106) | async function fetchAndLogTranscript() { function init (line 163) | function init() { function extractVideoContext (line 184) | function extractVideoContext() { function injectChatInterface (line 220) | function injectChatInterface() { function setupEventListeners (line 293) | function setupEventListeners() { function addMessage (line 375) | function addMessage(role, text, isStreaming = false) { function formatStreamingText (line 415) | function formatStreamingText(text) { function sendMessage (line 435) | async function sendMessage() { function prepareMessagesWithContext (line 525) | function prepareMessagesWithContext() { function loadMemories (line 613) | async function loadMemories() { FILE: examples/yt-assistant-chrome/src/options.js function init (line 19) | async function init() { function initializeMem0AI (line 60) | async function initializeMem0AI() { function loadConfig (line 85) | async function loadConfig() { function saveOptions (line 111) | async function saveOptions() { function resetToDefaults (line 157) | function resetToDefaults() { function fetchMemories (line 179) | async function fetchMemories() { function displayMemories (line 198) | function displayMemories(memories) { function showMemoriesError (line 241) | function showMemoriesError(message) { function deleteAllMemories (line 250) | async function deleteAllMemories() { function editMemory (line 276) | function editMemory(memory) { function closeEditModal (line 284) | function closeEditModal() { function saveMemory (line 290) | async function saveMemory() { function deleteMemory (line 318) | async function deleteMemory(memoryId) { function showStatus (line 343) | function showStatus(message, type = "info") { function addMemory (line 371) | async function addMemory() { function showMemoryResult (line 436) | function showMemoryResult(message, type) { FILE: examples/yt-assistant-chrome/src/popup.js function init (line 6) | async function init() { function toggleChat (line 41) | function toggleChat() { function openOptions (line 83) | function openOptions() { function togglePasswordVisibility (line 102) | function togglePasswordVisibility(inputId) { function saveApiKey (line 120) | async function saveApiKey() { function saveMem0ApiKey (line 146) | async function saveMem0ApiKey() { function loadConfig (line 172) | async function loadConfig() { function showStatus (line 216) | function showStatus(message, type = "info") { FILE: mem0-ts/src/client/mem0.ts class APIError (line 23) | class APIError extends Error { method constructor (line 24) | constructor(message: string) { type ClientOptions (line 30) | interface ClientOptions { class MemoryClient (line 39) | class MemoryClient { method _validateApiKey (line 50) | _validateApiKey(): any { method _validateOrgProject (line 62) | _validateOrgProject(): void { method constructor (line 84) | constructor(options: ClientOptions) { method _initializeClient (line 112) | private async _initializeClient() { method _captureEvent (line 139) | private _captureEvent(methodName: string, args: any[]) { method _fetchWithErrorHandling (line 149) | async _fetchWithErrorHandling(url: string, options: any): Promise { method _preparePayload (line 166) | _preparePayload(messages: Array, options: MemoryOptions): obj... method _prepareParams (line 172) | _prepareParams(options: MemoryOptions): object { method ping (line 178) | async ping(): Promise { method add (line 216) | async add( method update (line 256) | async update( method get (line 299) | async get(memoryId: string): Promise { method getAll (line 310) | async getAll(options?: SearchOptions): Promise> { method search (line 358) | async search( method delete (line 393) | async delete(memoryId: string): Promise<{ message: string }> { method deleteAll (line 405) | async deleteAll(options: MemoryOptions = {}): Promise<{ message: strin... method history (line 434) | async history(memoryId: string): Promise> { method users (line 446) | async users(): Promise { method deleteUser (line 477) | async deleteUser(data: { method deleteUsers (line 496) | async deleteUsers( method batchUpdate (line 578) | async batchUpdate(memories: Array): Promise { method batchDelete (line 596) | async batchDelete(memories: Array): Promise { method getProject (line 613) | async getProject(options: ProjectOptions): Promise { method updateProject (line 638) | async updateProject( method getWebhooks (line 662) | async getWebhooks(data?: { projectId?: string }): Promise { method updateWebhook (line 694) | async updateWebhook( method deleteWebhook (line 714) | async deleteWebhook(data: { method feedback (line 730) | async feedback(data: FeedbackPayload): Promise<{ message: string }> { method createMemoryExport (line 745) | async createMemoryExport( method getMemoryExport (line 772) | async getMemoryExport( FILE: mem0-ts/src/client/mem0.types.ts type Common (line 1) | interface Common { type MemoryOptions (line 6) | interface MemoryOptions { type ProjectOptions (line 37) | interface ProjectOptions { type OutputFormat (line 41) | enum OutputFormat { type API_VERSION (line 46) | enum API_VERSION { type Feedback (line 51) | enum Feedback { type MultiModalMessages (line 57) | interface MultiModalMessages { type Messages (line 64) | interface Messages { type Message (line 69) | interface Message extends Messages {} type MemoryHistory (line 71) | interface MemoryHistory { type SearchOptions (line 84) | interface SearchOptions extends MemoryOptions { type Event (line 97) | enum Event { type MemoryData (line 104) | interface MemoryData { type Memory (line 108) | interface Memory { type MemoryUpdateBody (line 128) | interface MemoryUpdateBody { type User (line 133) | interface User { type AllUsers (line 143) | interface AllUsers { type ProjectResponse (line 150) | interface ProjectResponse { type custom_categories (line 156) | interface custom_categories { type PromptUpdatePayload (line 160) | interface PromptUpdatePayload { type WebhookEvent (line 173) | enum WebhookEvent { type Webhook (line 180) | interface Webhook { type WebhookCreatePayload (line 191) | interface WebhookCreatePayload { type WebhookUpdatePayload (line 197) | interface WebhookUpdatePayload { type FeedbackPayload (line 204) | interface FeedbackPayload { type CreateMemoryExportPayload (line 210) | interface CreateMemoryExportPayload extends Common { type GetMemoryExportPayload (line 216) | interface GetMemoryExportPayload extends Common { FILE: mem0-ts/src/client/telemetry.ts constant MEM0_TELEMETRY (line 7) | let MEM0_TELEMETRY = true; constant POSTHOG_API_KEY (line 11) | const POSTHOG_API_KEY = "phc_hgJkUVJFYtmaJqrvf6CYN67TIQ8yhXAkWzUn9AMU4yX"; constant POSTHOG_HOST (line 12) | const POSTHOG_HOST = "https://us.i.posthog.com/i/v0/e/"; function generateHash (line 15) | function generateHash(input: string): string { class UnifiedTelemetry (line 22) | class UnifiedTelemetry implements TelemetryClient { method constructor (line 26) | constructor(projectApiKey: string, host: string) { method captureEvent (line 31) | async captureEvent(distinctId: string, eventName: string, properties =... method shutdown (line 66) | async shutdown() { function captureClientEvent (line 73) | async function captureClientEvent( FILE: mem0-ts/src/client/telemetry.types.ts type TelemetryClient (line 1) | interface TelemetryClient { type TelemetryInstance (line 10) | interface TelemetryInstance { type TelemetryEventData (line 19) | interface TelemetryEventData { type TelemetryOptions (line 29) | interface TelemetryOptions { FILE: mem0-ts/src/client/tests/helpers.ts type MockResponse (line 8) | interface MockResponse { function createMockFetch (line 19) | function createMockFetch( type MockMemory (line 64) | interface MockMemory { function createMockMemory (line 82) | function createMockMemory( type MockMemoryHistory (line 97) | interface MockMemoryHistory { function createMockMemoryHistory (line 110) | function createMockMemoryHistory( type MockUser (line 128) | interface MockUser { function createMockUser (line 138) | function createMockUser(overrides: Partial = {}): MockUser { type MockAllUsers (line 151) | interface MockAllUsers { function createMockAllUsers (line 158) | function createMockAllUsers(users: MockUser[] = []): MockAllUsers { constant TEST_API_KEY (line 169) | const TEST_API_KEY = "test-api-key-12345"; constant TEST_HOST (line 170) | const TEST_HOST = "https://api.test.mem0.ai"; constant TEST_ORG_ID (line 171) | const TEST_ORG_ID = "org_test_123"; constant TEST_PROJECT_ID (line 172) | const TEST_PROJECT_ID = "proj_test_456"; constant MOCK_PING_RESPONSE (line 174) | const MOCK_PING_RESPONSE = { function createStandardMockResponses (line 185) | function createStandardMockResponses(): Map { FILE: mem0-ts/src/client/tests/integration/batch.test.ts constant TEST_USER_ID (line 20) | const TEST_USER_ID = `integration-batch-${randomUUID()}`; FILE: mem0-ts/src/client/tests/integration/crud.test.ts constant TEST_USER_ID (line 22) | const TEST_USER_ID = `integration-crud-${randomUUID()}`; FILE: mem0-ts/src/client/tests/integration/global-setup.ts function globalSetup (line 9) | async function globalSetup() { FILE: mem0-ts/src/client/tests/integration/global-teardown.ts function globalTeardown (line 9) | async function globalTeardown() { FILE: mem0-ts/src/client/tests/integration/helpers.ts constant API_KEY (line 14) | const API_KEY = process.env.MEM0_API_KEY; function createTestClient (line 22) | function createTestClient(): MemoryClient { function withRetry (line 30) | async function withRetry( function waitForMemories (line 59) | async function waitForMemories( function waitForSearchResults (line 86) | async function waitForSearchResults( function suppressTelemetryNoise (line 110) | function suppressTelemetryNoise(): () => void { function seedTestMemories (line 138) | async function seedTestMemories( function cleanupTestUser (line 182) | async function cleanupTestUser( function fullProjectCleanup (line 206) | async function fullProjectCleanup(client: MemoryClient): Promise { FILE: mem0-ts/src/client/tests/integration/management.test.ts constant TEST_USER_ID (line 22) | const TEST_USER_ID = `integration-mgmt-${randomUUID()}`; FILE: mem0-ts/src/client/tests/integration/search.test.ts constant TEST_USER_ID (line 21) | const TEST_USER_ID = `integration-search-${randomUUID()}`; FILE: mem0-ts/src/client/tests/memoryClient.users.test.ts function createClientWithMockedAxios (line 46) | function createClientWithMockedAxios() { FILE: mem0-ts/src/client/tests/memoryClient.webhooks.test.ts function webhookMock (line 19) | function webhookMock(extra?: Map = constant HTTP_SUGGESTIONS (line 167) | const HTTP_SUGGESTIONS: Record = { function createExceptionFromResponse (line 191) | function createExceptionFromResponse( FILE: mem0-ts/src/community/src/integrations/langchain/mem0.ts type ClientOptions (line 102) | interface ClientOptions { type Mem0MemoryInput (line 115) | interface Mem0MemoryInput extends BaseChatMemoryInput { class Mem0Memory (line 150) | class Mem0Memory extends BaseChatMemory implements Mem0MemoryInput { method constructor (line 171) | constructor(fields: Mem0MemoryInput) { method memoryKeys (line 207) | get memoryKeys(): string[] { method loadMemoryVariables (line 216) | async loadMemoryVariables(values: InputValues): Promise { FILE: mem0-ts/src/oss/examples/basic.ts function demoDefaultConfig (line 7) | async function demoDefaultConfig() { function run_examples (line 14) | async function run_examples() { function runTests (line 21) | async function runTests(memory: Memory) { function demoLocalMemory (line 119) | async function demoLocalMemory() { function demoMemoryStore (line 149) | async function demoMemoryStore() { function demoPGVector (line 181) | async function demoPGVector() { function demoQdrant (line 220) | async function demoQdrant() { function demoRedis (line 260) | async function demoRedis() { function demoGraphMemory (line 295) | async function demoGraphMemory() { function main (line 375) | async function main() { FILE: mem0-ts/src/oss/examples/llms/mistral-example.ts function testMistral (line 7) | async function testMistral() { FILE: mem0-ts/src/oss/examples/local-llms.ts function chatWithMemories (line 28) | async function chatWithMemories(message: string, userId = "default_user") { function main (line 58) | async function main() { FILE: mem0-ts/src/oss/examples/utils/test-utils.ts function runTests (line 3) | async function runTests(memory: Memory) { FILE: mem0-ts/src/oss/examples/vector-stores/azure-ai-search.ts function demoAzureAISearch (line 4) | async function demoAzureAISearch() { FILE: mem0-ts/src/oss/examples/vector-stores/index.ts function main (line 12) | async function main() { FILE: mem0-ts/src/oss/examples/vector-stores/memory.ts function demoMemoryStore (line 4) | async function demoMemoryStore() { FILE: mem0-ts/src/oss/examples/vector-stores/pgvector.ts function demoPGVector (line 4) | async function demoPGVector() { FILE: mem0-ts/src/oss/examples/vector-stores/qdrant.ts function demoQdrant (line 4) | async function demoQdrant() { FILE: mem0-ts/src/oss/examples/vector-stores/redis.ts function demoRedis (line 4) | async function demoRedis() { FILE: mem0-ts/src/oss/examples/vector-stores/supabase.ts function demoSupabase (line 8) | async function demoSupabase() { FILE: mem0-ts/src/oss/src/config/defaults.ts constant DEFAULT_MEMORY_CONFIG (line 3) | const DEFAULT_MEMORY_CONFIG: MemoryConfig = { FILE: mem0-ts/src/oss/src/config/manager.ts class ConfigManager (line 4) | class ConfigManager { method mergeConfig (line 5) | static mergeConfig(userConfig: Partial = {}): MemoryConf... FILE: mem0-ts/src/oss/src/embeddings/azure.ts class AzureOpenAIEmbedder (line 5) | class AzureOpenAIEmbedder implements Embedder { method constructor (line 10) | constructor(config: EmbeddingConfig) { method embed (line 26) | async embed(text: string): Promise { method embedBatch (line 34) | async embedBatch(texts: string[]): Promise { FILE: mem0-ts/src/oss/src/embeddings/base.ts type Embedder (line 1) | interface Embedder { FILE: mem0-ts/src/oss/src/embeddings/google.ts class GoogleEmbedder (line 5) | class GoogleEmbedder implements Embedder { method constructor (line 10) | constructor(config: EmbeddingConfig) { method embed (line 18) | async embed(text: string): Promise { method embedBatch (line 27) | async embedBatch(texts: string[]): Promise { FILE: mem0-ts/src/oss/src/embeddings/langchain.ts class LangchainEmbedder (line 5) | class LangchainEmbedder implements Embedder { method constructor (line 9) | constructor(config: EmbeddingConfig) { method embed (line 30) | async embed(text: string): Promise { method embedBatch (line 40) | async embedBatch(texts: string[]): Promise { FILE: mem0-ts/src/oss/src/embeddings/lmstudio.ts constant DEFAULT_BASE_URL (line 5) | const DEFAULT_BASE_URL = "http://localhost:1234/v1"; constant DEFAULT_MODEL (line 6) | const DEFAULT_MODEL = constant DEFAULT_LMSTUDIO_API_KEY (line 8) | const DEFAULT_LMSTUDIO_API_KEY = "lm-studio"; class LMStudioEmbedder (line 10) | class LMStudioEmbedder implements Embedder { method constructor (line 14) | constructor(config: EmbeddingConfig) { method embed (line 21) | async embed(text: string): Promise { method embedBatch (line 37) | async embedBatch(texts: string[]): Promise { FILE: mem0-ts/src/oss/src/embeddings/ollama.ts class OllamaEmbedder (line 6) | class OllamaEmbedder implements Embedder { method constructor (line 13) | constructor(config: EmbeddingConfig) { method embed (line 24) | async embed(text: string): Promise { method embedBatch (line 44) | async embedBatch(texts: string[]): Promise { method normalizeModelName (line 49) | private static normalizeModelName(name: string): string { method ensureModelExists (line 53) | private async ensureModelExists(): Promise { FILE: mem0-ts/src/oss/src/embeddings/openai.ts class OpenAIEmbedder (line 5) | class OpenAIEmbedder implements Embedder { method constructor (line 10) | constructor(config: EmbeddingConfig) { method embed (line 19) | async embed(text: string): Promise { method embedBatch (line 27) | async embedBatch(texts: string[]): Promise { FILE: mem0-ts/src/oss/src/graphs/configs.ts type Neo4jConfig (line 3) | interface Neo4jConfig { type GraphStoreConfig (line 9) | interface GraphStoreConfig { function validateNeo4jConfig (line 16) | function validateNeo4jConfig(config: Neo4jConfig): void { function validateGraphStoreConfig (line 23) | function validateGraphStoreConfig(config: GraphStoreConfig): void { FILE: mem0-ts/src/oss/src/graphs/tools.ts type GraphToolParameters (line 3) | interface GraphToolParameters { type GraphEntitiesParameters (line 11) | interface GraphEntitiesParameters { type GraphRelationsParameters (line 18) | interface GraphRelationsParameters { constant UPDATE_MEMORY_TOOL_GRAPH (line 78) | const UPDATE_MEMORY_TOOL_GRAPH = { constant ADD_MEMORY_TOOL_GRAPH (line 109) | const ADD_MEMORY_TOOL_GRAPH = { constant NOOP_TOOL (line 153) | const NOOP_TOOL = { constant RELATIONS_TOOL (line 167) | const RELATIONS_TOOL = { constant EXTRACT_ENTITIES_TOOL (line 206) | const EXTRACT_ENTITIES_TOOL = { constant DELETE_MEMORY_TOOL_GRAPH (line 240) | const DELETE_MEMORY_TOOL_GRAPH = { FILE: mem0-ts/src/oss/src/graphs/utils.ts constant UPDATE_GRAPH_PROMPT (line 1) | const UPDATE_GRAPH_PROMPT = ` constant EXTRACT_RELATIONS_PROMPT (line 35) | const EXTRACT_RELATIONS_PROMPT = ` constant DELETE_RELATIONS_SYSTEM_PROMPT (line 57) | const DELETE_RELATIONS_SYSTEM_PROMPT = ` function getDeleteMessages (line 95) | function getDeleteMessages( function formatEntities (line 106) | function formatEntities( FILE: mem0-ts/src/oss/src/llms/anthropic.ts class AnthropicLLM (line 5) | class AnthropicLLM implements LLM { method constructor (line 9) | constructor(config: LLMConfig) { method generateResponse (line 18) | async generateResponse( method generateChat (line 50) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/llms/azure.ts class AzureOpenAILLM (line 5) | class AzureOpenAILLM implements LLM { method constructor (line 9) | constructor(config: LLMConfig) { method generateResponse (line 24) | async generateResponse( method generateChat (line 61) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/llms/base.ts type LLMResponse (line 3) | interface LLMResponse { type LLM (line 12) | interface LLM { FILE: mem0-ts/src/oss/src/llms/google.ts class GoogleLLM (line 5) | class GoogleLLM implements LLM { method constructor (line 9) | constructor(config: LLMConfig) { method generateResponse (line 14) | async generateResponse( method generateChat (line 70) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/llms/groq.ts class GroqLLM (line 5) | class GroqLLM implements LLM { method constructor (line 9) | constructor(config: LLMConfig) { method generateResponse (line 18) | async generateResponse( method generateChat (line 37) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/llms/langchain.ts class LangchainLLM (line 44) | class LangchainLLM implements LLM { method constructor (line 48) | constructor(config: LLMConfig) { method generateResponse (line 66) | async generateResponse( method generateChat (line 228) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/llms/lmstudio.ts constant DEFAULT_BASE_URL (line 5) | const DEFAULT_BASE_URL = "http://localhost:1234/v1"; constant DEFAULT_MODEL (line 6) | const DEFAULT_MODEL = constant DEFAULT_LMSTUDIO_API_KEY (line 8) | const DEFAULT_LMSTUDIO_API_KEY = "lm-studio"; class LMStudioLLM (line 10) | class LMStudioLLM extends OpenAILLM { method constructor (line 11) | constructor(config: LLMConfig) { method generateResponse (line 20) | async generateResponse( method generateChat (line 33) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/llms/mistral.ts class MistralLLM (line 5) | class MistralLLM implements LLM { method constructor (line 9) | constructor(config: LLMConfig) { method contentToString (line 20) | private contentToString(content: any): string { method generateResponse (line 39) | async generateResponse( method generateChat (line 84) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/llms/ollama.ts class OllamaLLM (line 6) | class OllamaLLM implements LLM { method constructor (line 12) | constructor(config: LLMConfig) { method generateResponse (line 22) | async generateResponse( method generateChat (line 65) | async generateChat(messages: Message[]): Promise { method ensureModelExists (line 92) | private async ensureModelExists(): Promise { FILE: mem0-ts/src/oss/src/llms/openai.ts class OpenAILLM (line 5) | class OpenAILLM implements LLM { method constructor (line 9) | constructor(config: LLMConfig) { method generateResponse (line 17) | async generateResponse( method generateChat (line 54) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/llms/openai_structured.ts class OpenAIStructuredLLM (line 5) | class OpenAIStructuredLLM implements LLM { method constructor (line 9) | constructor(config: LLMConfig) { method generateResponse (line 14) | async generateResponse( method generateChat (line 65) | async generateChat(messages: Message[]): Promise { FILE: mem0-ts/src/oss/src/memory/graph_memory.ts type SearchOutput (line 16) | interface SearchOutput { type ToolCall (line 26) | interface ToolCall { type LLMResponse (line 31) | interface LLMResponse { type Tool (line 35) | interface Tool { type GraphMemoryResult (line 44) | interface GraphMemoryResult { class MemoryGraph (line 50) | class MemoryGraph { method constructor (line 59) | constructor(config: MemoryConfig) { method add (line 98) | async add( method search (line 139) | async search(query: string, filters: Record, limit = 100) { method deleteAll (line 170) | async deleteAll(filters: Record) { method getAll (line 181) | async getAll(filters: Record, limit = 100) { method _retrieveNodesFromData (line 206) | private async _retrieveNodesFromData( method _establishNodesRelationsFromData (line 250) | private async _establishNodesRelationsFromData( method _searchGraphDb (line 307) | private async _searchGraphDb( method _getDeleteEntitiesFromSearchOutput (line 369) | private async _getDeleteEntitiesFromSearchOutput( method _deleteEntities (line 413) | private async _deleteEntities(toBeDeleted: any[], userId: string) { method _addEntities (line 447) | private async _addEntities( method _removeSpacesFromEntities (line 575) | private _removeSpacesFromEntities(entityList: any[]) { method _searchSourceNode (line 584) | private async _searchSourceNode( method _searchDestinationNode (line 630) | private async _searchDestinationNode( FILE: mem0-ts/src/oss/src/memory/index.ts class Memory (line 40) | class Memory { method constructor (line 55) | constructor(config: Partial = {}) { method _autoInitialize (line 103) | private async _autoInitialize(): Promise { method _ensureInitialized (line 135) | private async _ensureInitialized(): Promise { method _initializeTelemetry (line 153) | private async _initializeTelemetry() { method _getTelemetryId (line 167) | private async _getTelemetryId() { method _captureEvent (line 183) | private async _captureEvent(methodName: string, additionalData = {}) { method fromConfig (line 196) | static fromConfig(configDict: Record): Memory { method add (line 206) | async add( method addToVectorStore (line 269) | private async addToVectorStore( method get (line 435) | async get(memoryId: string): Promise { method search (line 474) | async search( method update (line 544) | async update(memoryId: string, data: string): Promise<{ message: strin... method delete (line 552) | async delete(memoryId: string): Promise<{ message: string }> { method deleteAll (line 559) | async deleteAll( method history (line 589) | async history(memoryId: string): Promise { method reset (line 594) | async reset(): Promise { method getAll (line 642) | async getAll(config: GetAllMemoryOptions): Promise { method createMemory (line 685) | private async createMemory( method updateMemory (line 713) | private async updateMemory( method deleteMemory (line 758) | private async deleteMemory(memoryId: string): Promise { FILE: mem0-ts/src/oss/src/memory/memory.types.ts type Entity (line 4) | interface Entity { type AddMemoryOptions (line 10) | interface AddMemoryOptions extends Entity { type SearchMemoryOptions (line 16) | interface SearchMemoryOptions extends Entity { type GetAllMemoryOptions (line 21) | interface GetAllMemoryOptions extends Entity { type DeleteAllMemoryOptions (line 25) | interface DeleteAllMemoryOptions extends Entity {} FILE: mem0-ts/src/oss/src/prompts/index.ts function getFactRetrievalMessages (line 44) | function getFactRetrievalMessages( function getUpdateMemoryMessages (line 104) | function getUpdateMemoryMessages( function parseMessages (line 276) | function parseMessages(messages: string[]): string { function removeCodeBlocks (line 280) | function removeCodeBlocks(text: string): string { FILE: mem0-ts/src/oss/src/storage/DummyHistoryManager.ts class DummyHistoryManager (line 1) | class DummyHistoryManager { method constructor (line 2) | constructor() {} method addHistory (line 4) | async addHistory( method getHistory (line 16) | async getHistory(memoryId: string): Promise { method reset (line 20) | async reset(): Promise { method close (line 24) | close(): void { FILE: mem0-ts/src/oss/src/storage/MemoryHistoryManager.ts type HistoryEntry (line 3) | interface HistoryEntry { class MemoryHistoryManager (line 14) | class MemoryHistoryManager implements HistoryManager { method addHistory (line 17) | async addHistory( method getHistory (line 40) | async getHistory(memoryId: string): Promise { method reset (line 50) | async reset(): Promise { method close (line 54) | close(): void { FILE: mem0-ts/src/oss/src/storage/SQLiteManager.ts class SQLiteManager (line 5) | class SQLiteManager implements HistoryManager { method constructor (line 10) | constructor(dbPath: string) { method init (line 16) | private init(): void { method addHistory (line 39) | async addHistory( method getHistory (line 59) | async getHistory(memoryId: string): Promise { method reset (line 63) | async reset(): Promise { method close (line 68) | close(): void { FILE: mem0-ts/src/oss/src/storage/SupabaseHistoryManager.ts type HistoryEntry (line 5) | interface HistoryEntry { type SupabaseHistoryConfig (line 16) | interface SupabaseHistoryConfig { class SupabaseHistoryManager (line 22) | class SupabaseHistoryManager implements HistoryManager { method constructor (line 26) | constructor(config: SupabaseHistoryConfig) { method initializeSupabase (line 32) | private async initializeSupabase(): Promise { method addHistory (line 59) | async addHistory( method getHistory (line 89) | async getHistory(memoryId: string): Promise { method reset (line 105) | async reset(): Promise { method close (line 117) | close(): void { FILE: mem0-ts/src/oss/src/storage/base.ts type HistoryManager (line 1) | interface HistoryManager { FILE: mem0-ts/src/oss/src/tests/better-sqlite3-migration.test.ts function normalize (line 178) | function normalize(v: number[]): number[] { FILE: mem0-ts/src/oss/src/tests/sqlite-backward-compat.test.ts function normalize (line 18) | function normalize(vector: number[]): number[] { FILE: mem0-ts/src/oss/src/tests/sqlite-path-resolution.test.ts function normalize (line 12) | function normalize(vector: number[]): number[] { FILE: mem0-ts/src/oss/src/types/index.ts type MultiModalMessages (line 3) | interface MultiModalMessages { type Message (line 10) | interface Message { type EmbeddingConfig (line 15) | interface EmbeddingConfig { type VectorStoreConfig (line 24) | interface VectorStoreConfig { type HistoryStoreConfig (line 33) | interface HistoryStoreConfig { type LLMConfig (line 43) | interface LLMConfig { type Neo4jConfig (line 53) | interface Neo4jConfig { type GraphStoreConfig (line 59) | interface GraphStoreConfig { type MemoryConfig (line 66) | interface MemoryConfig { type MemoryItem (line 88) | interface MemoryItem { type SearchFilters (line 98) | interface SearchFilters { type SearchResult (line 105) | interface SearchResult { type VectorStoreResult (line 110) | interface VectorStoreResult { FILE: mem0-ts/src/oss/src/utils/bm25.ts class BM25 (line 1) | class BM25 { method constructor (line 10) | constructor(documents: string[][], k1 = 1.5, b = 0.75) { method computeIdf (line 22) | private computeIdf() { method score (line 39) | private score(query: string[], doc: string[], index: number): number { method search (line 56) | search(query: string[]): string[][] { FILE: mem0-ts/src/oss/src/utils/factory.ts class EmbedderFactory (line 38) | class EmbedderFactory { method create (line 39) | static create(provider: string, config: EmbeddingConfig): Embedder { class LLMFactory (line 60) | class LLMFactory { method create (line 61) | static create(provider: string, config: LLMConfig): LLM { class VectorStoreFactory (line 90) | class VectorStoreFactory { method create (line 91) | static create(provider: string, config: VectorStoreConfig): VectorStore { class HistoryManagerFactory (line 113) | class HistoryManagerFactory { method create (line 114) | static create(provider: string, config: HistoryStoreConfig): HistoryMa... FILE: mem0-ts/src/oss/src/utils/logger.ts type Logger (line 1) | interface Logger { FILE: mem0-ts/src/oss/src/utils/sqlite.ts function getDefaultVectorStoreDbPath (line 5) | function getDefaultVectorStoreDbPath(): string { function ensureSQLiteDirectory (line 9) | function ensureSQLiteDirectory(dbPath: string): void { FILE: mem0-ts/src/oss/src/utils/telemetry.ts constant MEM0_TELEMETRY (line 10) | let MEM0_TELEMETRY = true; constant POSTHOG_API_KEY (line 14) | const POSTHOG_API_KEY = "phc_hgJkUVJFYtmaJqrvf6CYN67TIQ8yhXAkWzUn9AMU4yX"; constant POSTHOG_HOST (line 15) | const POSTHOG_HOST = "https://us.i.posthog.com/i/v0/e/"; class UnifiedTelemetry (line 17) | class UnifiedTelemetry implements TelemetryClient { method constructor (line 21) | constructor(projectApiKey: string, host: string) { method captureEvent (line 26) | async captureEvent(distinctId: string, eventName: string, properties =... method shutdown (line 64) | async shutdown() { function captureClientEvent (line 71) | async function captureClientEvent( FILE: mem0-ts/src/oss/src/utils/telemetry.types.ts type TelemetryClient (line 1) | interface TelemetryClient { type TelemetryInstance (line 10) | interface TelemetryInstance { type TelemetryEventData (line 19) | interface TelemetryEventData { type TelemetryOptions (line 29) | interface TelemetryOptions { FILE: mem0-ts/src/oss/src/vector_stores/azure_ai_search.ts type AzureAISearchConfig (line 23) | interface AzureAISearchConfig extends VectorStoreConfig { class AzureAISearch (line 73) | class AzureAISearch implements VectorStore { method constructor (line 86) | constructor(config: AzureAISearchConfig) { method initialize (line 120) | async initialize(): Promise { method _doInitialize (line 127) | private async _doInitialize(): Promise { method createCol (line 142) | private async createCol(): Promise { method generateDocument (line 236) | private generateDocument( method insert (line 260) | async insert( method sanitizeKey (line 288) | private sanitizeKey(key: string): string { method buildFilterExpression (line 295) | private buildFilterExpression(filters: SearchFilters): string { method extractJson (line 317) | private extractJson(payload: string): string { method search (line 332) | async search( method delete (line 392) | async delete(vectorId: string): Promise { method update (line 413) | async update( method get (line 449) | async get(vectorId: string): Promise { method listCols (line 471) | private async listCols(): Promise { method deleteCol (line 484) | async deleteCol(): Promise { method colInfo (line 491) | private async colInfo(): Promise<{ name: string; fields: SearchField[]... method list (line 502) | async list( method generateUUID (line 534) | private generateUUID(): string { method getUserId (line 549) | async getUserId(): Promise { method setUserId (line 611) | async setUserId(userId: string): Promise { method reset (line 640) | async reset(): Promise { FILE: mem0-ts/src/oss/src/vector_stores/base.ts type VectorStore (line 3) | interface VectorStore { FILE: mem0-ts/src/oss/src/vector_stores/langchain.ts type LangchainStoreConfig (line 7) | interface LangchainStoreConfig extends VectorStoreConfig { class LangchainVectorStore (line 12) | class LangchainVectorStore implements VectorStore { method constructor (line 17) | constructor(config: LangchainStoreConfig) { method insert (line 59) | async insert( method search (line 102) | async search( method get (line 136) | async get(vectorId: string): Promise { method update (line 149) | async update( method delete (line 164) | async delete(vectorId: string): Promise { method list (line 193) | async list( method deleteCol (line 207) | async deleteCol(): Promise { method getUserId (line 218) | async getUserId(): Promise { method setUserId (line 222) | async setUserId(userId: string): Promise { method initialize (line 226) | async initialize(): Promise { FILE: mem0-ts/src/oss/src/vector_stores/memory.ts type MemoryVector (line 11) | interface MemoryVector { class MemoryVectorStore (line 17) | class MemoryVectorStore implements VectorStore { method constructor (line 22) | constructor(config: VectorStoreConfig) { method init (line 41) | private init(): void { method cosineSimilarity (line 58) | private cosineSimilarity(a: number[], b: number[]): number { method filterVector (line 70) | private filterVector(vector: MemoryVector, filters?: SearchFilters): b... method insert (line 77) | async insert( method search (line 101) | async search( method get (line 142) | async get(vectorId: string): Promise { method update (line 155) | async update( method delete (line 171) | async delete(vectorId: string): Promise { method deleteCol (line 175) | async deleteCol(): Promise { method list (line 180) | async list( method getUserId (line 212) | async getUserId(): Promise { method setUserId (line 230) | async setUserId(userId: string): Promise { method initialize (line 237) | async initialize(): Promise { FILE: mem0-ts/src/oss/src/vector_stores/pgvector.ts type PGVectorConfig (line 5) | interface PGVectorConfig extends VectorStoreConfig { class PGVector (line 16) | class PGVector implements VectorStore { method constructor (line 24) | constructor(config: PGVectorConfig) { method initialize (line 40) | async initialize(): Promise { method checkDatabaseExists (line 85) | private async checkDatabaseExists(dbName: string): Promise { method createDatabase (line 93) | private async createDatabase(dbName: string): Promise { method createCol (line 98) | private async createCol(embeddingModelDims: number): Promise { method insert (line 138) | async insert( method search (line 162) | async search( method get (line 202) | async get(vectorId: string): Promise { method update (line 216) | async update( method delete (line 232) | async delete(vectorId: string): Promise { method deleteCol (line 239) | async deleteCol(): Promise { method listCols (line 243) | private async listCols(): Promise { method list (line 252) | async list( method close (line 301) | async close(): Promise { method getUserId (line 305) | async getUserId(): Promise { method setUserId (line 325) | async setUserId(userId: string): Promise { FILE: mem0-ts/src/oss/src/vector_stores/qdrant.ts type QdrantConfig (line 6) | interface QdrantConfig extends VectorStoreConfig { type QdrantFilter (line 19) | interface QdrantFilter { type QdrantCondition (line 25) | interface QdrantCondition { class Qdrant (line 31) | class Qdrant implements VectorStore { method constructor (line 37) | constructor(config: QdrantConfig) { method createFilter (line 72) | private createFilter(filters?: SearchFilters): QdrantFilter | undefined { method insert (line 103) | async insert( method search (line 119) | async search( method get (line 138) | async get(vectorId: string): Promise { method update (line 152) | async update( method delete (line 168) | async delete(vectorId: string): Promise { method deleteCol (line 174) | async deleteCol(): Promise { method list (line 178) | async list( method generateUUID (line 202) | private generateUUID(): string { method getUserId (line 213) | async getUserId(): Promise { method setUserId (line 250) | async setUserId(userId: string): Promise { method ensureCollection (line 276) | private async ensureCollection(name: string, size: number): Promise { method _doInitialize (line 328) | private async _doInitialize(): Promise { FILE: mem0-ts/src/oss/src/vector_stores/redis.ts type RedisConfig (line 12) | interface RedisConfig extends VectorStoreConfig { type RedisField (line 20) | interface RedisField { type RedisSchema (line 31) | interface RedisSchema { type RedisEntry (line 39) | interface RedisEntry { type RedisDocument (line 53) | interface RedisDocument { type RedisSearchResult (line 69) | interface RedisSearchResult { type RedisModule (line 74) | interface RedisModule { constant DEFAULT_FIELDS (line 79) | const DEFAULT_FIELDS: RedisField[] = [ constant EXCLUDED_KEYS (line 101) | const EXCLUDED_KEYS = new Set([ function toSnakeCase (line 112) | function toSnakeCase(obj: Record): Record { function toCamelCase (line 124) | function toCamelCase(obj: Record): Record { class RedisDB (line 135) | class RedisDB implements VectorStore { method constructor (line 144) | constructor(config: RedisConfig) { method createIndex (line 191) | private async createIndex(): Promise { method initialize (line 243) | async initialize(): Promise { method _doInitialize (line 250) | private async _doInitialize(): Promise { method insert (line 309) | async insert( method search (line 360) | async search( method get (line 431) | async get(vectorId: string): Promise { method update (line 533) | async update( method delete (line 570) | async delete(vectorId: string): Promise { method deleteCol (line 595) | async deleteCol(): Promise { method list (line 599) | async list( method close (line 645) | async close(): Promise { method getUserId (line 649) | async getUserId(): Promise { method setUserId (line 671) | async setUserId(userId: string): Promise { FILE: mem0-ts/src/oss/src/vector_stores/supabase.ts type VectorData (line 5) | interface VectorData { type VectorQueryParams (line 12) | interface VectorQueryParams { type VectorSearchResult (line 18) | interface VectorSearchResult { type SupabaseConfig (line 25) | interface SupabaseConfig extends VectorStoreConfig { class SupabaseDB (line 84) | class SupabaseDB implements VectorStore { method constructor (line 91) | constructor(config: SupabaseConfig) { method initialize (line 103) | async initialize(): Promise { method _doInitialize (line 110) | private async _doInitialize(): Promise { method insert (line 208) | async insert( method search (line 232) | async search( method get (line 264) | async get(vectorId: string): Promise { method update (line 285) | async update( method delete (line 309) | async delete(vectorId: string): Promise { method deleteCol (line 323) | async deleteCol(): Promise { method list (line 337) | async list( method getUserId (line 369) | async getUserId(): Promise { method setUserId (line 420) | async setUserId(userId: string): Promise { FILE: mem0-ts/src/oss/src/vector_stores/vectorize.ts type VectorizeConfig (line 6) | interface VectorizeConfig extends VectorStoreConfig { type CloudflareVector (line 12) | interface CloudflareVector { class VectorizeDB (line 18) | class VectorizeDB implements VectorStore { method constructor (line 25) | constructor(config: VectorizeConfig) { method insert (line 33) | async insert( method search (line 77) | async search( method get (line 109) | async get(vectorId: string): Promise { method update (line 133) | async update( method delete (line 171) | async delete(vectorId: string): Promise { method deleteCol (line 185) | async deleteCol(): Promise { method list (line 198) | async list( method generateUUID (line 230) | private generateUUID(): string { method getUserId (line 241) | async getUserId(): Promise { method setUserId (line 307) | async setUserId(userId: string): Promise { method initialize (line 346) | async initialize(): Promise { method _doInitialize (line 353) | private async _doInitialize(): Promise { FILE: mem0-ts/src/oss/tests/dimension-autodetect.test.ts function createMockEmbedder (line 241) | function createMockEmbedder(dims: number) { function createMockVectorStore (line 248) | function createMockVectorStore() { FILE: mem0-ts/src/oss/tests/graph-memory-parsing.test.ts function makeConfig (line 59) | function makeConfig(overrides: Record = {}) { function graph (line 75) | function graph(overrides: Record = {}): any { constant FILTERS (line 79) | const FILTERS = { userId: "test-user" }; FILE: mem0-ts/src/oss/tests/memory.add.test.ts function createMemory (line 52) | function createMemory(overrides: Partial = {}): Memory { FILE: mem0-ts/src/oss/tests/memory.crud.test.ts function createMemory (line 52) | function createMemory(): Memory { FILE: mem0-ts/src/oss/tests/memory.init.test.ts function createMemory (line 54) | function createMemory(overrides: Partial = {}): Memory { FILE: mem0-ts/src/oss/tests/vector-store.unit.test.ts constant DIM (line 9) | const DIM = 4; function createStore (line 11) | function createStore(): MemoryVectorStore { function vec (line 19) | function vec(values: number[]): number[] { FILE: mem0-ts/src/oss/tests/vector-stores-compat.test.ts function createMockQdrantClient (line 209) | function createMockQdrantClient() { function createMockEmbedder (line 872) | function createMockEmbedder(dims: number) { function createMockVectorStore (line 879) | function createMockVectorStore() { FILE: mem0/client/main.py class MemoryClient (line 24) | class MemoryClient: method __init__ (line 39) | def __init__( method _validate_api_key (line 107) | def _validate_api_key(self): method add (line 131) | def add(self, messages, **kwargs) -> Dict[str, Any]: method get (line 179) | def get(self, memory_id: str) -> Dict[str, Any]: method get_all (line 203) | def get_all(self, **kwargs) -> Dict[str, Any]: method search (line 252) | def search(self, query: str, **kwargs) -> Dict[str, Any]: method update (line 298) | def update( method delete (line 339) | def delete(self, memory_id: str) -> Dict[str, Any]: method delete_all (line 363) | def delete_all(self, **kwargs) -> Dict[str, str]: method history (line 392) | def history(self, memory_id: str) -> List[Dict[str, Any]]: method users (line 416) | def users(self) -> Dict[str, Any]: method delete_users (line 425) | def delete_users( method reset (line 492) | def reset(self) -> Dict[str, str]: method batch_update (line 515) | def batch_update(self, memories: List[Dict[str, Any]]) -> Dict[str, Any]: method batch_delete (line 542) | def batch_delete(self, memories: List[Dict[str, Any]]) -> Dict[str, Any]: method create_memory_export (line 568) | def create_memory_export(self, schema: str, **kwargs) -> Dict[str, Any]: method get_memory_export (line 595) | def get_memory_export(self, **kwargs) -> Dict[str, Any]: method get_summary (line 614) | def get_summary(self, filters: Optional[Dict[str, Any]] = None) -> Dic... method get_project (line 630) | def get_project(self, fields: Optional[List[str]] = None) -> Dict[str,... method update_project (line 668) | def update_project( method chat (line 764) | def chat(self): method get_webhooks (line 773) | def get_webhooks(self, project_id: str) -> Dict[str, Any]: method create_webhook (line 798) | def create_webhook(self, url: str, name: str, project_id: str, event_t... method update_webhook (line 826) | def update_webhook( method delete_webhook (line 860) | def delete_webhook(self, webhook_id: int) -> Dict[str, str]: method feedback (line 888) | def feedback( method _prepare_payload (line 911) | def _prepare_payload(self, messages: List[Dict[str, str]], kwargs: Dic... method _prepare_params (line 927) | def _prepare_params(self, kwargs: Optional[Dict[str, Any]] = None) -> ... class AsyncMemoryClient (line 953) | class AsyncMemoryClient: method __init__ (line 960) | def __init__( method _validate_api_key (line 1029) | def _validate_api_key(self): method _prepare_payload (line 1059) | def _prepare_payload(self, messages: List[Dict[str, str]], kwargs: Dic... method _prepare_params (line 1075) | def _prepare_params(self, kwargs: Optional[Dict[str, Any]] = None) -> ... method __aenter__ (line 1100) | async def __aenter__(self): method __aexit__ (line 1103) | async def __aexit__(self, exc_type, exc_val, exc_tb): method add (line 1107) | async def add(self, messages, **kwargs) -> Dict[str, Any]: method get (line 1135) | async def get(self, memory_id: str) -> Dict[str, Any]: method get_all (line 1143) | async def get_all(self, **kwargs) -> Dict[str, Any]: method search (line 1175) | async def search(self, query: str, **kwargs) -> Dict[str, Any]: method update (line 1203) | async def update( method delete (line 1244) | async def delete(self, memory_id: str) -> Dict[str, Any]: method delete_all (line 1268) | async def delete_all(self, **kwargs) -> Dict[str, str]: method history (line 1292) | async def history(self, memory_id: str) -> List[Dict[str, Any]]: method users (line 1316) | async def users(self) -> Dict[str, Any]: method delete_users (line 1325) | async def delete_users( method reset (line 1392) | async def reset(self) -> Dict[str, str]: method batch_update (line 1414) | async def batch_update(self, memories: List[Dict[str, Any]]) -> Dict[s... method batch_delete (line 1441) | async def batch_delete(self, memories: List[Dict[str, Any]]) -> Dict[s... method create_memory_export (line 1467) | async def create_memory_export(self, schema: str, **kwargs) -> Dict[st... method get_memory_export (line 1485) | async def get_memory_export(self, **kwargs) -> Dict[str, Any]: method get_summary (line 1500) | async def get_summary(self, filters: Optional[Dict[str, Any]] = None) ... method get_project (line 1516) | async def get_project(self, fields: Optional[List[str]] = None) -> Dic... method update_project (line 1550) | async def update_project( method chat (line 1624) | async def chat(self): method get_webhooks (line 1633) | async def get_webhooks(self, project_id: str) -> Dict[str, Any]: method create_webhook (line 1658) | async def create_webhook(self, url: str, name: str, project_id: str, e... method update_webhook (line 1686) | async def update_webhook( method delete_webhook (line 1720) | async def delete_webhook(self, webhook_id: int) -> Dict[str, str]: method feedback (line 1744) | async def feedback( FILE: mem0/client/project.py class ProjectConfig (line 15) | class ProjectConfig(BaseModel): class BaseProject (line 27) | class BaseProject(ABC): method __init__ (line 32) | def __init__( method org_id (line 60) | def org_id(self) -> Optional[str]: method project_id (line 65) | def project_id(self) -> Optional[str]: method user_email (line 70) | def user_email(self) -> Optional[str]: method _validate_org_project (line 74) | def _validate_org_project(self) -> None: method _prepare_params (line 84) | def _prepare_params(self, kwargs: Optional[Dict[str, Any]] = None) -> ... method _prepare_org_params (line 109) | def _prepare_org_params(self, kwargs: Optional[Dict[str, Any]] = None)... method get (line 134) | def get(self, fields: Optional[List[str]] = None) -> Dict[str, Any]: method create (line 154) | def create(self, name: str, description: Optional[str] = None) -> Dict... method update (line 175) | def update( method delete (line 204) | def delete(self) -> Dict[str, Any]: method get_members (line 221) | def get_members(self) -> Dict[str, Any]: method add_member (line 238) | def add_member(self, email: str, role: str = "READER") -> Dict[str, Any]: method update_member (line 259) | def update_member(self, email: str, role: str) -> Dict[str, Any]: method remove_member (line 280) | def remove_member(self, email: str) -> Dict[str, Any]: class Project (line 300) | class Project(BaseProject): method __init__ (line 305) | def __init__( method get (line 327) | def get(self, fields: Optional[List[str]] = None) -> Dict[str, Any]: method create (line 358) | def create(self, name: str, description: Optional[str] = None) -> Dict... method update (line 396) | def update( method delete (line 461) | def delete(self) -> Dict[str, Any]: method get_members (line 487) | def get_members(self) -> Dict[str, Any]: method add_member (line 513) | def add_member(self, email: str, role: str = "READER") -> Dict[str, Any]: method update_member (line 549) | def update_member(self, email: str, role: str) -> Dict[str, Any]: method remove_member (line 585) | def remove_member(self, email: str) -> Dict[str, Any]: class AsyncProject (line 617) | class AsyncProject(BaseProject): method __init__ (line 622) | def __init__( method get (line 644) | async def get(self, fields: Optional[List[str]] = None) -> Dict[str, A... method create (line 675) | async def create(self, name: str, description: Optional[str] = None) -... method update (line 713) | async def update( method delete (line 778) | async def delete(self) -> Dict[str, Any]: method get_members (line 804) | async def get_members(self) -> Dict[str, Any]: method add_member (line 830) | async def add_member(self, email: str, role: str = "READER") -> Dict[s... method update_member (line 866) | async def update_member(self, email: str, role: str) -> Dict[str, Any]: method remove_member (line 902) | async def remove_member(self, email: str) -> Dict[str, Any]: FILE: mem0/client/utils.py class APIError (line 13) | class APIError(Exception): function api_error_handler (line 23) | def api_error_handler(func): FILE: mem0/configs/base.py class MemoryItem (line 17) | class MemoryItem(BaseModel): class MemoryConfig (line 30) | class MemoryConfig(BaseModel): class AzureConfig (line 69) | class AzureConfig(BaseModel): FILE: mem0/configs/embeddings/base.py class BaseEmbedderConfig (line 10) | class BaseEmbedderConfig(ABC): method __init__ (line 15) | def __init__( FILE: mem0/configs/enums.py class MemoryType (line 4) | class MemoryType(Enum): FILE: mem0/configs/llms/anthropic.py class AnthropicConfig (line 6) | class AnthropicConfig(BaseLlmConfig): method __init__ (line 12) | def __init__( FILE: mem0/configs/llms/aws_bedrock.py class AWSBedrockConfig (line 7) | class AWSBedrockConfig(BaseLlmConfig): method __init__ (line 14) | def __init__( method provider (line 63) | def provider(self) -> str: method model_name (line 70) | def model_name(self) -> str: method get_model_config (line 76) | def get_model_config(self) -> Dict[str, Any]: method get_aws_config (line 90) | def get_aws_config(self) -> Dict[str, Any]: method validate_model_format (line 110) | def validate_model_format(self) -> bool: method get_supported_regions (line 142) | def get_supported_regions(self) -> List[str]: method get_model_capabilities (line 153) | def get_model_capabilities(self) -> Dict[str, Any]: FILE: mem0/configs/llms/azure.py class AzureOpenAIConfig (line 7) | class AzureOpenAIConfig(BaseLlmConfig): method __init__ (line 13) | def __init__( FILE: mem0/configs/llms/base.py class BaseLlmConfig (line 7) | class BaseLlmConfig(ABC): method __init__ (line 16) | def __init__( FILE: mem0/configs/llms/deepseek.py class DeepSeekConfig (line 6) | class DeepSeekConfig(BaseLlmConfig): method __init__ (line 12) | def __init__( FILE: mem0/configs/llms/lmstudio.py class LMStudioConfig (line 6) | class LMStudioConfig(BaseLlmConfig): method __init__ (line 12) | def __init__( FILE: mem0/configs/llms/ollama.py class OllamaConfig (line 6) | class OllamaConfig(BaseLlmConfig): method __init__ (line 12) | def __init__( FILE: mem0/configs/llms/openai.py class OpenAIConfig (line 6) | class OpenAIConfig(BaseLlmConfig): method __init__ (line 12) | def __init__( FILE: mem0/configs/llms/vllm.py class VllmConfig (line 6) | class VllmConfig(BaseLlmConfig): method __init__ (line 12) | def __init__( FILE: mem0/configs/prompts.py function get_update_memory_messages (line 405) | def get_update_memory_messages(retrieved_old_memory_dict, response_conte... FILE: mem0/configs/rerankers/base.py class BaseRerankerConfig (line 5) | class BaseRerankerConfig(BaseModel): FILE: mem0/configs/rerankers/cohere.py class CohereRerankerConfig (line 7) | class CohereRerankerConfig(BaseRerankerConfig): FILE: mem0/configs/rerankers/config.py class RerankerConfig (line 6) | class RerankerConfig(BaseModel): FILE: mem0/configs/rerankers/huggingface.py class HuggingFaceRerankerConfig (line 7) | class HuggingFaceRerankerConfig(BaseRerankerConfig): FILE: mem0/configs/rerankers/llm.py class LLMRerankerConfig (line 8) | class LLMRerankerConfig(BaseRerankerConfig): FILE: mem0/configs/rerankers/sentence_transformer.py class SentenceTransformerRerankerConfig (line 7) | class SentenceTransformerRerankerConfig(BaseRerankerConfig): FILE: mem0/configs/rerankers/zero_entropy.py class ZeroEntropyRerankerConfig (line 7) | class ZeroEntropyRerankerConfig(BaseRerankerConfig): FILE: mem0/configs/vector_stores/azure_ai_search.py class AzureAISearchConfig (line 6) | class AzureAISearchConfig(BaseModel): method validate_extra_fields (line 27) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/azure_mysql.py class AzureMySQLConfig (line 6) | class AzureMySQLConfig(BaseModel): method check_auth (line 31) | def check_auth(cls, values: Dict[str, Any]) -> Dict[str, Any]: method check_required_fields (line 50) | def check_required_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: method validate_extra_fields (line 69) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: class Config (line 83) | class Config: FILE: mem0/configs/vector_stores/baidu.py class BaiduDBConfig (line 6) | class BaiduDBConfig(BaseModel): method validate_extra_fields (line 17) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/cassandra.py class CassandraConfig (line 6) | class CassandraConfig(BaseModel): method check_auth (line 31) | def check_auth(cls, values: Dict[str, Any]) -> Dict[str, Any]: method check_connection_config (line 46) | def check_connection_config(cls, values: Dict[str, Any]) -> Dict[str, ... method validate_extra_fields (line 61) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: class Config (line 75) | class Config: FILE: mem0/configs/vector_stores/chroma.py class ChromaDbConfig (line 6) | class ChromaDbConfig(BaseModel): method check_connection_config (line 23) | def check_connection_config(cls, values): method validate_extra_fields (line 48) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/databricks.py class DatabricksConfig (line 8) | class DatabricksConfig(BaseModel): method validate_extra_fields (line 36) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: method validate_authentication (line 47) | def validate_authentication(self): FILE: mem0/configs/vector_stores/elasticsearch.py class ElasticsearchConfig (line 7) | class ElasticsearchConfig(BaseModel): method validate_auth (line 26) | def validate_auth(cls, values: Dict[str, Any]) -> Dict[str, Any]: method validate_headers (line 39) | def validate_headers(cls, values: Dict[str, Any]) -> Dict[str, Any]: method validate_extra_fields (line 56) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/faiss.py class FAISSConfig (line 6) | class FAISSConfig(BaseModel): method validate_distance_strategy (line 19) | def validate_distance_strategy(cls, values: Dict[str, Any]) -> Dict[st... method validate_extra_fields (line 27) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/langchain.py class LangchainConfig (line 6) | class LangchainConfig(BaseModel): method validate_extra_fields (line 20) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/milvus.py class MetricType (line 7) | class MetricType(str, Enum): method __str__ (line 12) | def __str__(self) -> str: class MilvusDBConfig (line 22) | class MilvusDBConfig(BaseModel): method validate_extra_fields (line 32) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/mongodb.py class MongoDBConfig (line 6) | class MongoDBConfig(BaseModel): method validate_extra_fields (line 16) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/neptune.py class NeptuneAnalyticsConfig (line 11) | class NeptuneAnalyticsConfig(BaseModel): FILE: mem0/configs/vector_stores/opensearch.py class OpenSearchConfig (line 6) | class OpenSearchConfig(BaseModel): method validate_auth (line 24) | def validate_auth(cls, values: Dict[str, Any]) -> Dict[str, Any]: method validate_extra_fields (line 33) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/pgvector.py class PGVectorConfig (line 6) | class PGVectorConfig(BaseModel): method check_auth_and_connection (line 24) | def check_auth_and_connection(cls, values): method validate_extra_fields (line 44) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/pinecone.py class PineconeConfig (line 7) | class PineconeConfig(BaseModel): method check_api_key_or_client (line 25) | def check_api_key_or_client(cls, values: Dict[str, Any]) -> Dict[str, ... method check_pod_or_serverless (line 35) | def check_pod_or_serverless(cls, values: Dict[str, Any]) -> Dict[str, ... method validate_extra_fields (line 45) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/qdrant.py class QdrantConfig (line 6) | class QdrantConfig(BaseModel): method check_host_port_or_path (line 23) | def check_host_port_or_path(cls, values: Dict[str, Any]) -> Dict[str, ... method validate_extra_fields (line 37) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/redis.py class RedisDBConfig (line 7) | class RedisDBConfig(BaseModel): method validate_extra_fields (line 14) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/s3_vectors.py class S3VectorsConfig (line 6) | class S3VectorsConfig(BaseModel): method validate_extra_fields (line 18) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/supabase.py class IndexMethod (line 7) | class IndexMethod(str, Enum): class IndexMeasure (line 13) | class IndexMeasure(str, Enum): class SupabaseConfig (line 20) | class SupabaseConfig(BaseModel): method check_connection_string (line 28) | def check_connection_string(cls, values): method validate_extra_fields (line 36) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/configs/vector_stores/upstash_vector.py class UpstashVectorConfig (line 12) | class UpstashVectorConfig(BaseModel): method check_credentials_or_client (line 25) | def check_credentials_or_client(cls, values: Dict[str, Any]) -> Dict[s... FILE: mem0/configs/vector_stores/valkey.py class ValkeyConfig (line 4) | class ValkeyConfig(BaseModel): FILE: mem0/configs/vector_stores/vertex_ai_vector_search.py class GoogleMatchingEngineConfig (line 6) | class GoogleMatchingEngineConfig(BaseModel): method __init__ (line 20) | def __init__(self, **kwargs): method model_post_init (line 25) | def model_post_init(self, _context) -> None: FILE: mem0/configs/vector_stores/weaviate.py class WeaviateConfig (line 6) | class WeaviateConfig(BaseModel): method check_connection_params (line 19) | def check_connection_params(cls, values: Dict[str, Any]) -> Dict[str, ... method validate_extra_fields (line 29) | def validate_extra_fields(cls, values: Dict[str, Any]) -> Dict[str, Any]: FILE: mem0/embeddings/aws_bedrock.py class AWSBedrockEmbedding (line 16) | class AWSBedrockEmbedding(EmbeddingBase): method __init__ (line 22) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method _normalize_vector (line 49) | def _normalize_vector(self, embeddings): method _get_embedding (line 55) | def _get_embedding(self, text): method embed (line 90) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/azure_openai.py class AzureOpenAIEmbedding (line 13) | class AzureOpenAIEmbedding(EmbeddingBase): method __init__ (line 14) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 44) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/base.py class EmbeddingBase (line 7) | class EmbeddingBase(ABC): method __init__ (line 14) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 21) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/configs.py class EmbedderConfig (line 6) | class EmbedderConfig(BaseModel): method validate_config (line 14) | def validate_config(cls, v, values): FILE: mem0/embeddings/fastembed.py class FastEmbedEmbedding (line 11) | class FastEmbedEmbedding(EmbeddingBase): method __init__ (line 12) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 18) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/gemini.py class GoogleGenAIEmbedding (line 11) | class GoogleGenAIEmbedding(EmbeddingBase): method __init__ (line 12) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 22) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/huggingface.py class HuggingFaceEmbedding (line 15) | class HuggingFaceEmbedding(EmbeddingBase): method __init__ (line 16) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 29) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/langchain.py class LangchainEmbedding (line 12) | class LangchainEmbedding(EmbeddingBase): method __init__ (line 13) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 24) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/lmstudio.py class LMStudioEmbedding (line 9) | class LMStudioEmbedding(EmbeddingBase): method __init__ (line 10) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 19) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/mock.py class MockEmbeddings (line 6) | class MockEmbeddings(EmbeddingBase): method embed (line 7) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/ollama.py class OllamaEmbedding (line 24) | class OllamaEmbedding(EmbeddingBase): method __init__ (line 25) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method _normalize_model_name (line 35) | def _normalize_model_name(name: str) -> str: method _ensure_model_exists (line 38) | def _ensure_model_exists(self): method embed (line 51) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/openai.py class OpenAIEmbedding (line 11) | class OpenAIEmbedding(EmbeddingBase): method __init__ (line 12) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 34) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/together.py class TogetherEmbedding (line 10) | class TogetherEmbedding(EmbeddingBase): method __init__ (line 11) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 20) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/embeddings/vertexai.py class VertexAIEmbedding (line 11) | class VertexAIEmbedding(EmbeddingBase): method __init__ (line 12) | def __init__(self, config: Optional[BaseEmbedderConfig] = None): method embed (line 44) | def embed(self, text, memory_action: Optional[Literal["add", "search",... FILE: mem0/exceptions.py class MemoryError (line 34) | class MemoryError(Exception): method __init__ (line 58) | def __init__( method __repr__ (line 82) | def __repr__(self) -> str: class AuthenticationError (line 93) | class AuthenticationError(MemoryError): class RateLimitError (line 115) | class RateLimitError(MemoryError): class ValidationError (line 138) | class ValidationError(MemoryError): class MemoryNotFoundError (line 162) | class MemoryNotFoundError(MemoryError): class NetworkError (line 179) | class NetworkError(MemoryError): class ConfigurationError (line 202) | class ConfigurationError(MemoryError): class MemoryQuotaExceededError (line 224) | class MemoryQuotaExceededError(MemoryError): class MemoryCorruptionError (line 246) | class MemoryCorruptionError(MemoryError): class VectorSearchError (line 263) | class VectorSearchError(MemoryError): class CacheError (line 286) | class CacheError(MemoryError): class VectorStoreError (line 304) | class VectorStoreError(MemoryError): method __init__ (line 318) | def __init__(self, message: str, error_code: str = "VECTOR_001", detai... class GraphStoreError (line 324) | class GraphStoreError(MemoryError): method __init__ (line 338) | def __init__(self, message: str, error_code: str = "GRAPH_001", detail... class EmbeddingError (line 344) | class EmbeddingError(MemoryError): method __init__ (line 358) | def __init__(self, message: str, error_code: str = "EMBED_001", detail... class LLMError (line 364) | class LLMError(MemoryError): method __init__ (line 378) | def __init__(self, message: str, error_code: str = "LLM_001", details:... class DatabaseError (line 384) | class DatabaseError(MemoryError): method __init__ (line 398) | def __init__(self, message: str, error_code: str = "DB_001", details: ... class DependencyError (line 404) | class DependencyError(MemoryError): method __init__ (line 418) | def __init__(self, message: str, error_code: str = "DEPS_001", details... function create_exception_from_response (line 442) | def create_exception_from_response( FILE: mem0/graphs/configs.py class Neo4jConfig (line 8) | class Neo4jConfig(BaseModel): method check_host_port_or_path (line 16) | def check_host_port_or_path(cls, values): class MemgraphConfig (line 27) | class MemgraphConfig(BaseModel): method check_host_port_or_path (line 33) | def check_host_port_or_path(cls, values): class NeptuneConfig (line 44) | class NeptuneConfig(BaseModel): method check_host_port_or_path (line 56) | def check_host_port_or_path(cls, values): class KuzuConfig (line 76) | class KuzuConfig(BaseModel): class GraphStoreConfig (line 80) | class GraphStoreConfig(BaseModel): method validate_config (line 103) | def validate_config(cls, v, values): FILE: mem0/graphs/neptune/base.py class NeptuneBase (line 25) | class NeptuneBase(ABC): method _create_embedding_model (line 32) | def _create_embedding_model(config): method _create_llm (line 43) | def _create_llm(config, llm_provider): method _create_vector_store (line 50) | def _create_vector_store(vector_store_provider, config): method add (line 58) | def add(self, data, filters): method _retrieve_nodes_from_data (line 76) | def _retrieve_nodes_from_data(self, data, filters): method _establish_nodes_relations_from_data (line 110) | def _establish_nodes_relations_from_data(self, data, filters, entity_t... method _remove_spaces_from_entities (line 153) | def _remove_spaces_from_entities(self, entity_list): method _get_delete_entities_from_search_output (line 160) | def _get_delete_entities_from_search_output(self, search_output, data,... method _delete_entities (line 191) | def _delete_entities(self, to_be_deleted, user_id): method _delete_entities_cypher (line 209) | def _delete_entities_cypher(self, source, destination, relationship, u... method _add_entities (line 216) | def _add_entities(self, to_be_added, user_id, entity_type_map): method _add_entities_cypher (line 256) | def _add_entities_cypher( method _add_entities_by_source_cypher (line 306) | def _add_entities_by_source_cypher( method _add_entities_by_destination_cypher (line 318) | def _add_entities_by_destination_cypher( method _add_relationship_entities_cypher (line 330) | def _add_relationship_entities_cypher( method _add_new_entities_cypher (line 340) | def _add_new_entities_cypher( method search (line 353) | def search(self, query, filters, limit=100): method _search_source_node (line 388) | def _search_source_node(self, source_embedding, user_id, threshold=0.9): method _search_source_node_cypher (line 394) | def _search_source_node_cypher(self, source_embedding, user_id, thresh... method _search_destination_node (line 400) | def _search_destination_node(self, destination_embedding, user_id, thr... method _search_destination_node_cypher (line 406) | def _search_destination_node_cypher(self, destination_embedding, user_... method delete_all (line 412) | def delete_all(self, filters): method _delete_all_cypher (line 417) | def _delete_all_cypher(self, filters): method get_all (line 423) | def get_all(self, filters, limit=100): method _get_all_cypher (line 455) | def _get_all_cypher(self, filters, limit): method _search_graph_db (line 461) | def _search_graph_db(self, node_list, filters, limit=100): method _search_graph_db_cypher (line 476) | def _search_graph_db_cypher(self, n_embedding, filters, limit): method reset (line 483) | def reset(self): FILE: mem0/graphs/neptune/neptunedb.py class MemoryGraph (line 14) | class MemoryGraph(NeptuneBase): method __init__ (line 15) | def __init__(self, config): method _delete_entities_cypher (line 62) | def _delete_entities_cypher(self, source, destination, relationship, u... method _add_entities_by_source_cypher (line 91) | def _add_entities_by_source_cypher( method _add_entities_by_destination_cypher (line 166) | def _add_entities_by_destination_cypher( method _add_relationship_entities_cypher (line 242) | def _add_relationship_entities_cypher( method _add_new_entities_cypher (line 289) | def _add_new_entities_cypher( method _search_source_node_cypher (line 370) | def _search_source_node_cypher(self, source_embedding, user_id, thresh... method _search_destination_node_cypher (line 404) | def _search_destination_node_cypher(self, destination_embedding, user_... method _delete_all_cypher (line 437) | def _delete_all_cypher(self, filters): method _get_all_cypher (line 458) | def _get_all_cypher(self, filters, limit): method _search_graph_db_cypher (line 475) | def _search_graph_db_cypher(self, n_embedding, filters, limit): FILE: mem0/graphs/neptune/neptunegraph.py class MemoryGraph (line 14) | class MemoryGraph(NeptuneBase): method __init__ (line 15) | def __init__(self, config): method _delete_entities_cypher (line 45) | def _delete_entities_cypher(self, source, destination, relationship, u... method _add_entities_by_source_cypher (line 74) | def _add_entities_by_source_cypher( method _add_entities_by_destination_cypher (line 137) | def _add_entities_by_destination_cypher( method _add_relationship_entities_cypher (line 202) | def _add_relationship_entities_cypher( method _add_new_entities_cypher (line 249) | def _add_new_entities_cypher( method _search_source_node_cypher (line 325) | def _search_source_node_cypher(self, source_embedding, user_id, thresh... method _search_destination_node_cypher (line 362) | def _search_destination_node_cypher(self, destination_embedding, user_... method _delete_all_cypher (line 399) | def _delete_all_cypher(self, filters): method _get_all_cypher (line 415) | def _get_all_cypher(self, filters, limit): method _search_graph_db_cypher (line 432) | def _search_graph_db_cypher(self, n_embedding, filters, limit): FILE: mem0/graphs/utils.py function get_delete_messages (line 94) | def get_delete_messages(existing_memories_string, data, user_id): FILE: mem0/llms/anthropic.py class AnthropicLLM (line 14) | class AnthropicLLM(LLMBase): method __init__ (line 15) | def __init__(self, config: Optional[Union[BaseLlmConfig, AnthropicConf... method generate_response (line 43) | def generate_response( FILE: mem0/llms/aws_bedrock.py function extract_provider (line 25) | def extract_provider(model: str) -> str: class AWSBedrockLLM (line 33) | class AWSBedrockLLM(LLMBase): method __init__ (line 40) | def __init__(self, config: Optional[Union[AWSBedrockConfig, BaseLlmCon... method _initialize_aws_client (line 76) | def _initialize_aws_client(self): method _test_connection (line 102) | def _test_connection(self): method _initialize_provider_settings (line 119) | def _initialize_provider_settings(self): method _format_messages_anthropic (line 140) | def _format_messages_anthropic(self, messages: List[Dict[str, str]]) -... method _format_messages_cohere (line 162) | def _format_messages_cohere(self, messages: List[Dict[str, str]]) -> str: method _format_messages_amazon (line 173) | def _format_messages_amazon(self, messages: List[Dict[str, str]]) -> L... method _format_messages_meta (line 191) | def _format_messages_meta(self, messages: List[Dict[str, str]]) -> str: method _format_messages_mistral (line 202) | def _format_messages_mistral(self, messages: List[Dict[str, str]]) -> ... method _format_messages_generic (line 220) | def _format_messages_generic(self, messages: List[Dict[str, str]]) -> ... method _prepare_input (line 231) | def _prepare_input(self, prompt: str) -> Dict[str, Any]: method _convert_tool_format (line 315) | def _convert_tool_format(self, original_tools: List[Dict[str, Any]]) -... method _parse_response (line 352) | def _parse_response( method generate_response (line 424) | def generate_response( method _convert_tools_to_converse_format (line 460) | def _convert_tools_to_converse_format(tools: List[Dict]) -> List[Dict]: method _generate_with_tools (line 482) | def _generate_with_tools(self, messages: List[Dict[str, str]], tools: ... method _generate_standard (line 524) | def _generate_standard(self, messages: List[Dict[str, str]], stream: b... method list_available_models (line 600) | def list_available_models(self) -> List[Dict[str, Any]]: method get_model_capabilities (line 630) | def get_model_capabilities(self) -> Dict[str, Any]: method validate_model_access (line 642) | def validate_model_access(self) -> bool: FILE: mem0/llms/azure_openai.py class AzureOpenAILLM (line 16) | class AzureOpenAILLM(LLMBase): method __init__ (line 17) | def __init__(self, config: Optional[Union[BaseLlmConfig, AzureOpenAICo... method _parse_response (line 70) | def _parse_response(self, response, tools): method generate_response (line 100) | def generate_response( FILE: mem0/llms/azure_openai_structured.py class AzureOpenAIStructuredLLM (line 13) | class AzureOpenAIStructuredLLM(LLMBase): method __init__ (line 14) | def __init__(self, config: Optional[BaseLlmConfig] = None): method generate_response (line 49) | def generate_response( FILE: mem0/llms/base.py class LLMBase (line 7) | class LLMBase(ABC): method __init__ (line 13) | def __init__(self, config: Optional[Union[BaseLlmConfig, Dict]] = None): method _validate_config (line 30) | def _validate_config(self): method _is_reasoning_model (line 43) | def _is_reasoning_model(self, model: str) -> bool: method _get_supported_params (line 67) | def _get_supported_params(self, **kwargs) -> Dict: method generate_response (line 98) | def generate_response( method _get_common_params (line 115) | def _get_common_params(self, **kwargs) -> Dict: FILE: mem0/llms/configs.py class LlmConfig (line 6) | class LlmConfig(BaseModel): method validate_config (line 11) | def validate_config(cls, v, values): FILE: mem0/llms/deepseek.py class DeepSeekLLM (line 13) | class DeepSeekLLM(LLMBase): method __init__ (line 14) | def __init__(self, config: Optional[Union[BaseLlmConfig, DeepSeekConfi... method _parse_response (line 43) | def _parse_response(self, response, tools): method generate_response (line 73) | def generate_response( FILE: mem0/llms/gemini.py class GeminiLLM (line 14) | class GeminiLLM(LLMBase): method __init__ (line 15) | def __init__(self, config: Optional[BaseLlmConfig] = None): method _parse_response (line 24) | def _parse_response(self, response, tools): method _reformat_messages (line 68) | def _reformat_messages(self, messages: List[Dict[str, str]]): method _reformat_tools (line 93) | def _reformat_tools(self, tools: Optional[List[Dict]]): method generate_response (line 134) | def generate_response( FILE: mem0/llms/groq.py class GroqLLM (line 15) | class GroqLLM(LLMBase): method __init__ (line 16) | def __init__(self, config: Optional[BaseLlmConfig] = None): method _parse_response (line 25) | def _parse_response(self, response, tools): method generate_response (line 55) | def generate_response( FILE: mem0/llms/langchain.py class LangchainLLM (line 13) | class LangchainLLM(LLMBase): method __init__ (line 14) | def __init__(self, config: Optional[BaseLlmConfig] = None): method _parse_response (line 25) | def _parse_response(self, response: AIMessage, tools: Optional[List[Di... method generate_response (line 54) | def generate_response( FILE: mem0/llms/litellm.py class LiteLLM (line 14) | class LiteLLM(LLMBase): method __init__ (line 15) | def __init__(self, config: Optional[BaseLlmConfig] = None): method _parse_response (line 21) | def _parse_response(self, response, tools): method generate_response (line 51) | def generate_response( FILE: mem0/llms/lmstudio.py class LMStudioLLM (line 12) | class LMStudioLLM(LLMBase): method __init__ (line 13) | def __init__(self, config: Optional[Union[BaseLlmConfig, LMStudioConfi... method _parse_response (line 43) | def _parse_response(self, response, tools): method generate_response (line 73) | def generate_response( FILE: mem0/llms/ollama.py class OllamaLLM (line 15) | class OllamaLLM(LLMBase): method __init__ (line 16) | def __init__(self, config: Optional[Union[BaseLlmConfig, OllamaConfig,... method _parse_response (line 43) | def _parse_response(self, response, tools): method generate_response (line 92) | def generate_response( FILE: mem0/llms/openai.py class OpenAILLM (line 14) | class OpenAILLM(LLMBase): method __init__ (line 15) | def __init__(self, config: Optional[Union[BaseLlmConfig, OpenAIConfig,... method _parse_response (line 53) | def _parse_response(self, response, tools): method generate_response (line 83) | def generate_response( FILE: mem0/llms/openai_structured.py class OpenAIStructuredLLM (line 10) | class OpenAIStructuredLLM(LLMBase): method __init__ (line 11) | def __init__(self, config: Optional[BaseLlmConfig] = None): method generate_response (line 21) | def generate_response( FILE: mem0/llms/sarvam.py class SarvamLLM (line 10) | class SarvamLLM(LLMBase): method __init__ (line 11) | def __init__(self, config: Optional[BaseLlmConfig] = None): method generate_response (line 31) | def generate_response(self, messages: List[Dict[str, str]], response_f... FILE: mem0/llms/together.py class TogetherLLM (line 15) | class TogetherLLM(LLMBase): method __init__ (line 16) | def __init__(self, config: Optional[BaseLlmConfig] = None): method _parse_response (line 25) | def _parse_response(self, response, tools): method generate_response (line 55) | def generate_response( FILE: mem0/llms/vllm.py class VllmLLM (line 13) | class VllmLLM(LLMBase): method __init__ (line 14) | def __init__(self, config: Optional[Union[BaseLlmConfig, VllmConfig, D... method _parse_response (line 43) | def _parse_response(self, response, tools): method generate_response (line 73) | def generate_response( FILE: mem0/llms/xai.py class XAILLM (line 10) | class XAILLM(LLMBase): method __init__ (line 11) | def __init__(self, config: Optional[BaseLlmConfig] = None): method generate_response (line 21) | def generate_response( FILE: mem0/memory/base.py class MemoryBase (line 4) | class MemoryBase(ABC): method get (line 6) | def get(self, memory_id): method get_all (line 19) | def get_all(self): method update (line 29) | def update(self, memory_id, data): method delete (line 43) | def delete(self, memory_id): method history (line 53) | def history(self, memory_id): FILE: mem0/memory/graph_memory.py class MemoryGraph (line 29) | class MemoryGraph: method __init__ (line 30) | def __init__(self, config): method add (line 76) | def add(self, data, filters): method search (line 96) | def search(self, query, filters, limit=100): method delete_all (line 132) | def delete_all(self, filters): method get_all (line 152) | def get_all(self, filters, limit=100): method _retrieve_nodes_from_data (line 196) | def _retrieve_nodes_from_data(self, data, filters): method _establish_nodes_relations_from_data (line 229) | def _establish_nodes_relations_from_data(self, data, filters, entity_t... method _search_graph_db (line 271) | def _search_graph_db(self, node_list, filters, limit=100): method _get_delete_entities_from_search_output (line 322) | def _get_delete_entities_from_search_output(self, search_output, data,... method _delete_entities (line 358) | def _delete_entities(self, to_be_deleted, filters): method _add_entities (line 413) | def _add_entities(self, to_be_added, filters, entity_type_map): method _remove_spaces_from_entities (line 609) | def _remove_spaces_from_entities(self, entity_list): method _search_source_node (line 617) | def _search_source_node(self, source_embedding, filters, threshold=0.9): method _search_destination_node (line 654) | def _search_destination_node(self, destination_embedding, filters, thr... method reset (line 693) | def reset(self): FILE: mem0/memory/kuzu_memory.py class MemoryGraph (line 29) | class MemoryGraph: method __init__ (line 30) | def __init__(self, config): method kuzu_create_schema (line 68) | def kuzu_create_schema(self): method kuzu_execute (line 94) | def kuzu_execute(self, query, parameters=None): method add (line 98) | def add(self, data, filters): method search (line 116) | def search(self, query, filters, limit=5): method delete_all (line 152) | def delete_all(self, filters): method get_all (line 172) | def get_all(self, filters, limit=100): method _retrieve_nodes_from_data (line 222) | def _retrieve_nodes_from_data(self, data, filters): method _establish_nodes_relations_from_data (line 255) | def _establish_nodes_relations_from_data(self, data, filters, entity_t... method _search_graph_db (line 297) | def _search_graph_db(self, node_list, filters, limit=100, threshold=No... method _get_delete_entities_from_search_output (line 349) | def _get_delete_entities_from_search_output(self, search_output, data,... method _delete_entities (line 385) | def _delete_entities(self, to_be_deleted, filters): method _add_entities (line 434) | def _add_entities(self, to_be_added, filters, entity_type_map): method _remove_spaces_from_entities (line 634) | def _remove_spaces_from_entities(self, entity_list): method _search_source_node (line 641) | def _search_source_node(self, source_embedding, filters, threshold=0.9): method _search_destination_node (line 674) | def _search_destination_node(self, destination_embedding, filters, thr... method reset (line 708) | def reset(self): FILE: mem0/memory/main.py function _normalize_iso_timestamp_to_utc (line 53) | def _normalize_iso_timestamp_to_utc(timestamp: Optional[str]) -> Optiona... function _is_sensitive_field (line 109) | def _is_sensitive_field(field_name: str) -> bool: function _safe_deepcopy_config (line 125) | def _safe_deepcopy_config(config): function _build_filters_and_metadata (line 159) | def _build_filters_and_metadata( class Memory (line 244) | class Memory(MemoryBase): method __init__ (line 245) | def __init__(self, config: MemoryConfig = MemoryConfig()): method from_config (line 308) | def from_config(cls, config_dict: Dict[str, Any]): method _process_config (line 318) | def _process_config(config_dict: Dict[str, Any]) -> Dict[str, Any]: method _should_use_agent_memory_extraction (line 332) | def _should_use_agent_memory_extraction(self, messages, metadata): method add (line 353) | def add( method _add_to_vector_store (line 458) | def _add_to_vector_store(self, messages, metadata, filters, infer): method _add_to_graph (line 678) | def _add_to_graph(self, messages, filters): method get (line 689) | def get(self, memory_id): method get_all (line 732) | def get_all( method _get_all_from_vector_store (line 790) | def _get_all_from_vector_store(self, filters, limit): method search (line 837) | def search( method _process_metadata_filters (line 937) | def _process_metadata_filters(self, metadata_filters: Dict[str, Any]) ... method _has_advanced_operators (line 1006) | def _has_advanced_operators(self, filters: Dict[str, Any]) -> bool: method _search_vector_store (line 1033) | def _search_vector_store(self, query, filters, limit, threshold: Optio... method update (line 1071) | def update(self, memory_id, data): method delete (line 1093) | def delete(self, memory_id): method delete_all (line 1104) | def delete_all(self, user_id: Optional[str] = None, agent_id: Optional... method history (line 1140) | def history(self, memory_id): method _create_memory (line 1153) | def _create_memory(self, data, existing_embeddings, metadata=None): method _create_procedural_memory (line 1181) | def _create_procedural_memory(self, messages, metadata=None, prompt=No... method _update_memory (line 1220) | def _update_memory(self, memory_id, data, existing_embeddings, metadat... method _delete_memory (line 1274) | def _delete_memory(self, memory_id): method reset (line 1290) | def reset(self): method chat (line 1315) | def chat(self, query): class AsyncMemory (line 1319) | class AsyncMemory(MemoryBase): method __init__ (line 1320) | def __init__(self, config: MemoryConfig = MemoryConfig()): method from_config (line 1364) | async def from_config(cls, config_dict: Dict[str, Any]): method _process_config (line 1374) | def _process_config(config_dict: Dict[str, Any]) -> Dict[str, Any]: method _should_use_agent_memory_extraction (line 1388) | def _should_use_agent_memory_extraction(self, messages, metadata): method add (line 1409) | async def add( method _add_to_vector_store (line 1488) | async def _add_to_vector_store( method _add_to_graph (line 1728) | async def _add_to_graph(self, messages, filters): method get (line 1739) | async def get(self, memory_id): method get_all (line 1782) | async def get_all( method _get_all_from_vector_store (line 1845) | async def _get_all_from_vector_store(self, filters, limit): method search (line 1892) | async def search( method _process_metadata_filters (line 1999) | def _process_metadata_filters(self, metadata_filters: Dict[str, Any]) ... method _has_advanced_operators (line 2068) | def _has_advanced_operators(self, filters: Dict[str, Any]) -> bool: method _search_vector_store (line 2095) | async def _search_vector_store(self, query, filters, limit, threshold:... method update (line 2135) | async def update(self, memory_id, data): method delete (line 2158) | async def delete(self, memory_id): method delete_all (line 2169) | async def delete_all(self, user_id=None, agent_id=None, run_id=None): method history (line 2208) | async def history(self, memory_id): method _create_memory (line 2221) | async def _create_memory(self, data, existing_embeddings, metadata=None): method _create_procedural_memory (line 2254) | async def _create_procedural_memory(self, messages, metadata=None, llm... method _update_memory (line 2307) | async def _update_memory(self, memory_id, data, existing_embeddings, m... method _delete_memory (line 2364) | async def _delete_memory(self, memory_id): method reset (line 2383) | async def reset(self): method chat (line 2409) | async def chat(self, query): FILE: mem0/memory/memgraph_memory.py class MemoryGraph (line 29) | class MemoryGraph: method __init__ (line 30) | def __init__(self, config): method add (line 81) | def add(self, data, filters): method search (line 101) | def search(self, query, filters, limit=100): method delete_all (line 137) | def delete_all(self, filters): method get_all (line 153) | def get_all(self, filters, limit=100): method _retrieve_nodes_from_data (line 199) | def _retrieve_nodes_from_data(self, data, filters): method _establish_nodes_relations_from_data (line 233) | def _establish_nodes_relations_from_data(self, data, filters, entity_t... method _search_graph_db (line 274) | def _search_graph_db(self, node_list, filters, limit=100): method _get_delete_entities_from_search_output (line 337) | def _get_delete_entities_from_search_output(self, search_output, data,... method _delete_entities (line 364) | def _delete_entities(self, to_be_deleted, filters): method _add_entities (line 406) | def _add_entities(self, to_be_added, filters, entity_type_map): method _remove_spaces_from_entities (line 530) | def _remove_spaces_from_entities(self, entity_list): method _search_source_node (line 538) | def _search_source_node(self, source_embedding, filters, threshold=0.9): method _search_destination_node (line 577) | def _search_destination_node(self, destination_embedding, filters, thr... method _vector_index_exists (line 617) | def _vector_index_exists(self, index_info, index_name): method _label_property_index_exists (line 638) | def _label_property_index_exists(self, index_info, label, property_name): method _label_index_exists (line 659) | def _label_index_exists(self, index_info, label): method _fetch_existing_indexes (line 678) | def _fetch_existing_indexes(self): FILE: mem0/memory/setup.py function setup_config (line 12) | def setup_config(): function get_user_id (line 21) | def get_user_id(): function get_or_create_user_id (line 35) | def get_or_create_user_id(vector_store): FILE: mem0/memory/storage.py class SQLiteManager (line 10) | class SQLiteManager: method __init__ (line 11) | def __init__(self, db_path: str = ":memory:"): method _migrate_history_table (line 18) | def _migrate_history_table(self) -> None: method _create_history_table (line 100) | def _create_history_table(self) -> None: method add_history (line 126) | def add_history( method get_history (line 169) | def get_history(self, memory_id: str) -> List[Dict[str, Any]]: method reset (line 199) | def reset(self) -> None: method close (line 212) | def close(self) -> None: method __del__ (line 217) | def __del__(self): FILE: mem0/memory/telemetry.py class AnonymousTelemetry (line 25) | class AnonymousTelemetry: method __init__ (line 26) | def __init__(self, vector_store=None): method capture_event (line 35) | def capture_event(self, event_name, properties=None, user_email=None): method close (line 55) | def close(self): function capture_event (line 63) | def capture_event(event_name, memory_instance, additional_data=None): function capture_client_event (line 91) | def capture_client_event(event_name, instance, additional_data=None): FILE: mem0/memory/utils.py function get_fact_retrieval_messages (line 14) | def get_fact_retrieval_messages(message, is_agent_memory=False): function get_fact_retrieval_messages_legacy (line 30) | def get_fact_retrieval_messages_legacy(message): function ensure_json_instruction (line 35) | def ensure_json_instruction(system_prompt, user_prompt): function parse_messages (line 60) | def parse_messages(messages): function format_entities (line 72) | def format_entities(entities): function normalize_facts (line 83) | def normalize_facts(raw_facts): function remove_code_blocks (line 108) | def remove_code_blocks(content: str) -> str: function extract_json (line 124) | def extract_json(text): function get_image_description (line 138) | def get_image_description(image_obj, llm, vision_details): function parse_vision_messages (line 163) | def parse_vision_messages(messages, llm=None, vision_details="auto"): function process_telemetry_filters (line 193) | def process_telemetry_filters(filters): function sanitize_relationship_for_cypher (line 211) | def sanitize_relationship_for_cypher(relationship) -> str: FILE: mem0/proxy/main.py class Mem0 (line 28) | class Mem0: method __init__ (line 29) | def __init__( class Chat (line 43) | class Chat: method __init__ (line 44) | def __init__(self, mem0_client): class Completions (line 48) | class Completions: method __init__ (line 49) | def __init__(self, mem0_client): method create (line 52) | def create( method _prepare_messages (line 147) | def _prepare_messages(self, messages: List[dict]) -> List[dict]: method _async_add_to_memory (line 152) | def _async_add_to_memory(self, messages, user_id, agent_id, run_id, me... method _fetch_relevant_memories (line 166) | def _fetch_relevant_memories(self, messages, user_id, agent_id, run_id... method _format_query_with_memories (line 179) | def _format_query_with_memories(self, messages, relevant_memories): FILE: mem0/reranker/base.py class BaseReranker (line 4) | class BaseReranker(ABC): method rerank (line 8) | def rerank(self, query: str, documents: List[Dict[str, Any]], top_k: i... FILE: mem0/reranker/cohere_reranker.py class CohereReranker (line 13) | class CohereReranker(BaseReranker): method __init__ (line 16) | def __init__(self, config): method rerank (line 34) | def rerank(self, query: str, documents: List[Dict[str, Any]], top_k: i... FILE: mem0/reranker/huggingface_reranker.py class HuggingFaceReranker (line 16) | class HuggingFaceReranker(BaseReranker): method __init__ (line 19) | def __init__(self, config: Union[BaseRerankerConfig, HuggingFaceRerank... method rerank (line 59) | def rerank(self, query: str, documents: List[Dict[str, Any]], top_k: i... FILE: mem0/reranker/llm_reranker.py class LLMReranker (line 10) | class LLMReranker(BaseReranker): method __init__ (line 13) | def __init__(self, config: Union[BaseRerankerConfig, LLMRerankerConfig... method _get_default_prompt (line 64) | def _get_default_prompt(self) -> str: method _extract_score (line 80) | def _extract_score(self, response_text: str) -> float: method rerank (line 93) | def rerank(self, query: str, documents: List[Dict[str, Any]], top_k: i... FILE: mem0/reranker/sentence_transformer_reranker.py class SentenceTransformerReranker (line 15) | class SentenceTransformerReranker(BaseReranker): method __init__ (line 18) | def __init__(self, config: Union[BaseRerankerConfig, SentenceTransform... method rerank (line 46) | def rerank(self, query: str, documents: List[Dict[str, Any]], top_k: i... FILE: mem0/reranker/zero_entropy_reranker.py class ZeroEntropyReranker (line 13) | class ZeroEntropyReranker(BaseReranker): method __init__ (line 16) | def __init__(self, config): method rerank (line 39) | def rerank(self, query: str, documents: List[Dict[str, Any]], top_k: i... FILE: mem0/utils/factory.py function load_class (line 22) | def load_class(class_type): class LlmFactory (line 28) | class LlmFactory: method create (line 56) | def create(cls, provider_name: str, config: Optional[Union[BaseLlmConf... method register_provider (line 112) | def register_provider(cls, name: str, class_path: str, config_class=No... method get_supported_providers (line 126) | def get_supported_providers(cls) -> list: class EmbedderFactory (line 136) | class EmbedderFactory: method create (line 152) | def create(cls, provider_name, config, vector_config: Optional[dict]): class VectorStoreFactory (line 164) | class VectorStoreFactory: method create (line 192) | def create(cls, provider_name, config): method reset (line 203) | def reset(cls, instance): class GraphStoreFactory (line 208) | class GraphStoreFactory: method create (line 223) | def create(cls, provider_name, config): class RerankerFactory (line 232) | class RerankerFactory: method create (line 248) | def create(cls, provider_name: str, config: Optional[Union[BaseReranke... FILE: mem0/utils/gcp_auth.py class GCPAuthenticator (line 13) | class GCPAuthenticator: method get_credentials (line 25) | def get_credentials( method setup_vertex_ai (line 93) | def setup_vertex_ai( method get_genai_client (line 135) | def get_genai_client( FILE: mem0/vector_stores/azure_ai_search.py class OutputData (line 37) | class OutputData(BaseModel): class AzureAISearch (line 43) | class AzureAISearch(VectorStoreBase): method __init__ (line 44) | def __init__( method create_col (line 105) | def create_col(self): method _generate_document (line 164) | def _generate_document(self, vector, payload, id): method insert (line 173) | def insert(self, vectors, payloads=None, ids=None): method _sanitize_key (line 192) | def _sanitize_key(self, key: str) -> str: method _build_filter_expression (line 195) | def _build_filter_expression(self, filters): method search (line 208) | def search(self, query, vectors, limit=5, filters=None): method delete (line 249) | def delete(self, vector_id): method update (line 263) | def update(self, vector_id, vector=None, payload=None): method get (line 286) | def get(self, vector_id) -> OutputData: method list_cols (line 303) | def list_cols(self) -> List[str]: method delete_col (line 316) | def delete_col(self): method col_info (line 320) | def col_info(self): method list (line 330) | def list(self, filters=None, limit=100): method __del__ (line 352) | def __del__(self): method reset (line 357) | def reset(self): FILE: mem0/vector_stores/azure_mysql.py class OutputData (line 29) | class OutputData(BaseModel): class AzureMySQL (line 35) | class AzureMySQL(VectorStoreBase): method __init__ (line 36) | def __init__( method _setup_azure_auth (line 100) | def _setup_azure_auth(self): method _setup_connection_pool (line 113) | def _setup_connection_pool(self, minconn: int, maxconn: int): method _get_cursor (line 148) | def _get_cursor(self, commit: bool = False): method create_col (line 167) | def create_col(self, name: str = None, vector_size: int = None, distan... method insert (line 192) | def insert(self, vectors: List[List[float]], payloads: Optional[List[D... method _cosine_distance (line 220) | def _cosine_distance(self, vec1_json: str, vec2: List[float]) -> str: method search (line 242) | def search( method delete (line 303) | def delete(self, vector_id: str): method update (line 313) | def update( method get (line 339) | def get(self, vector_id: str) -> Optional[OutputData]: method list_cols (line 363) | def list_cols(self) -> List[str]: method delete_col (line 374) | def delete_col(self): method col_info (line 380) | def col_info(self) -> Dict[str, Any]: method list (line 406) | def list( method reset (line 451) | def reset(self): method __del__ (line 457) | def __del__(self): FILE: mem0/vector_stores/baidu.py class OutputData (line 42) | class OutputData(BaseModel): class BaiduDB (line 48) | class BaiduDB(VectorStoreBase): method __init__ (line 49) | def __init__( method _create_database_if_not_exists (line 90) | def _create_database_if_not_exists(self): method create_col (line 106) | def create_col(self, name, vector_size, distance): method insert (line 175) | def insert(self, vectors, payloads=None, ids=None): method search (line 188) | def search(self, query: str, vectors: list, limit: int = 5, filters: d... method delete (line 230) | def delete(self, vector_id): method update (line 239) | def update(self, vector_id=None, vector=None, payload=None): method get (line 251) | def get(self, vector_id): method list_cols (line 266) | def list_cols(self): method delete_col (line 276) | def delete_col(self): method col_info (line 307) | def col_info(self): method list (line 316) | def list(self, filters: dict = None, limit: int = 100) -> list: method reset (line 338) | def reset(self): method _create_filter (line 352) | def _create_filter(self, filters: dict) -> str: FILE: mem0/vector_stores/base.py class VectorStoreBase (line 4) | class VectorStoreBase(ABC): method create_col (line 6) | def create_col(self, name, vector_size, distance): method insert (line 11) | def insert(self, vectors, payloads=None, ids=None): method search (line 16) | def search(self, query, vectors, limit=5, filters=None): method delete (line 21) | def delete(self, vector_id): method update (line 26) | def update(self, vector_id, vector=None, payload=None): method get (line 31) | def get(self, vector_id): method list_cols (line 36) | def list_cols(self): method delete_col (line 41) | def delete_col(self): method col_info (line 46) | def col_info(self): method list (line 51) | def list(self, filters=None, limit=None): method reset (line 56) | def reset(self): FILE: mem0/vector_stores/cassandra.py class OutputData (line 23) | class OutputData(BaseModel): class CassandraDB (line 29) | class CassandraDB(VectorStoreBase): method __init__ (line 30) | def __init__( method _setup_connection (line 78) | def _setup_connection(self): method _create_keyspace (line 118) | def _create_keyspace(self): method _create_table (line 133) | def _create_table(self): method create_col (line 150) | def create_col(self, name: str = None, vector_size: int = None, distan... method insert (line 176) | def insert( method search (line 213) | def search( method delete (line 282) | def delete(self, vector_id: str): method update (line 301) | def update( method get (line 339) | def get(self, vector_id: str) -> Optional[OutputData]: method list_cols (line 370) | def list_cols(self) -> List[str]: method delete_col (line 389) | def delete_col(self): method col_info (line 401) | def col_info(self) -> Dict[str, Any]: method list (line 427) | def list( method reset (line 475) | def reset(self): method __del__ (line 488) | def __del__(self): FILE: mem0/vector_stores/chroma.py class OutputData (line 17) | class OutputData(BaseModel): class ChromaDB (line 23) | class ChromaDB(VectorStoreBase): method __init__ (line 24) | def __init__( method _parse_output (line 76) | def _parse_output(self, data: Dict) -> List[OutputData]: method create_col (line 109) | def create_col(self, name: str, embedding_fn: Optional[callable] = None): method insert (line 126) | def insert( method search (line 143) | def search( method delete (line 163) | def delete(self, vector_id: str): method update (line 172) | def update( method get (line 188) | def get(self, vector_id: str) -> OutputData: method list_cols (line 201) | def list_cols(self) -> List[chromadb.Collection]: method delete_col (line 210) | def delete_col(self): method col_info (line 216) | def col_info(self) -> Dict: method list (line 225) | def list(self, filters: Optional[Dict] = None, limit: int = 100) -> Li... method reset (line 240) | def reset(self): method _generate_where_clause (line 247) | def _generate_where_clause(where: dict[str, any]) -> dict[str, any]: FILE: mem0/vector_stores/configs.py class VectorStoreConfig (line 6) | class VectorStoreConfig(BaseModel): method validate_and_create_config (line 40) | def validate_and_create_config(self) -> "VectorStoreConfig": FILE: mem0/vector_stores/databricks.py class MemoryResult (line 23) | class MemoryResult(BaseModel): class Databricks (line 32) | class Databricks(VectorStoreBase): method __init__ (line 33) | def __init__( method _ensure_endpoint_exists (line 227) | def _ensure_endpoint_exists(self): method _ensure_source_table_exists (line 244) | def _ensure_source_table_exists(self): method create_col (line 276) | def create_col(self, name=None, vector_size=None, distance=None): method _format_sql_value (line 344) | def _format_sql_value(self, v): method insert (line 379) | def insert(self, vectors: list, payloads: list = None, ids: list = None): method search (line 426) | def search(self, query: str, vectors: list, limit: int = 5, filters: d... method delete (line 487) | def delete(self, vector_id): method update (line 512) | def update(self, vector_id=None, vector=None, payload=None): method get (line 560) | def get(self, vector_id) -> MemoryResult: method list_cols (line 626) | def list_cols(self) -> List[str]: method delete_col (line 640) | def delete_col(self): method col_info (line 656) | def col_info(self, name=None): method list (line 674) | def list(self, filters: dict = None, limit: int = None) -> list[Memory... method reset (line 718) | def reset(self): FILE: mem0/vector_stores/elasticsearch.py class OutputData (line 18) | class OutputData(BaseModel): class ElasticsearchDB (line 24) | class ElasticsearchDB(VectorStoreBase): method __init__ (line 25) | def __init__(self, **kwargs): method create_index (line 56) | def create_index(self) -> None: method create_col (line 80) | def create_col(self, name: str, vector_size: int, distance: str = "cos... method insert (line 96) | def insert( method search (line 131) | def search( method delete (line 161) | def delete(self, vector_id: str) -> None: method update (line 165) | def update(self, vector_id: str, vector: Optional[List[float]] = None,... method get (line 175) | def get(self, vector_id: str) -> Optional[OutputData]: method list_cols (line 194) | def list_cols(self) -> List[str]: method delete_col (line 198) | def delete_col(self) -> None: method col_info (line 202) | def col_info(self, name: str) -> Any: method list (line 206) | def list(self, filters: Optional[Dict] = None, limit: Optional[int] = ... method reset (line 233) | def reset(self): FILE: mem0/vector_stores/faiss.py class OutputData (line 34) | class OutputData(BaseModel): class FAISS (line 40) | class FAISS(VectorStoreBase): method __init__ (line 41) | def __init__( method _load (line 83) | def _load(self, index_path: str, docstore_path: str): method _save (line 102) | def _save(self): method _parse_output (line 118) | def _parse_output(self, scores, ids, limit=None) -> List[OutputData]: method create_col (line 159) | def create_col(self, name: str, distance: str = None): method insert (line 185) | def insert( method search (line 227) | def search( method _apply_filters (line 269) | def _apply_filters(self, payload: Dict, filters: Dict) -> bool: method delete (line 295) | def delete(self, vector_id: str): method update (line 321) | def update( method get (line 355) | def get(self, vector_id: str) -> OutputData: method list_cols (line 379) | def list_cols(self) -> List[str]: method delete_col (line 399) | def delete_col(self): method col_info (line 421) | def col_info(self) -> Dict: method list (line 438) | def list(self, filters: Optional[Dict] = None, limit: int = 100) -> Li... method reset (line 475) | def reset(self): FILE: mem0/vector_stores/langchain.py class OutputData (line 18) | class OutputData(BaseModel): class Langchain (line 24) | class Langchain(VectorStoreBase): method __init__ (line 25) | def __init__(self, client: VectorStore, collection_name: str = "mem0"): method _parse_output (line 29) | def _parse_output(self, data: Dict) -> List[OutputData]: method create_col (line 75) | def create_col(self, name, vector_size=None, distance=None): method insert (line 79) | def insert( method search (line 94) | def search(self, query: str, vectors: List[List[float]], limit: int = ... method delete (line 107) | def delete(self, vector_id): method update (line 113) | def update(self, vector_id, vector=None, payload=None): method get (line 120) | def get(self, vector_id): method list_cols (line 130) | def list_cols(self): method delete_col (line 137) | def delete_col(self): method col_info (line 149) | def col_info(self): method list (line 155) | def list(self, filters=None, limit=None): method reset (line 177) | def reset(self): FILE: mem0/vector_stores/milvus.py class OutputData (line 19) | class OutputData(BaseModel): class MilvusDB (line 25) | class MilvusDB(VectorStoreBase): method __init__ (line 26) | def __init__( method create_col (line 55) | def create_col( method insert (line 85) | def insert(self, ids, vectors, payloads, **kwargs: Optional[dict[str, ... method _create_filter (line 100) | def _create_filter(self, filters: dict): method _parse_output (line 118) | def _parse_output(self, data: list): method search (line 142) | def search(self, query: str, vectors: list, limit: int = 5, filters: d... method delete (line 166) | def delete(self, vector_id): method update (line 175) | def update(self, vector_id=None, vector=None, payload=None): method get (line 187) | def get(self, vector_id): method list_cols (line 205) | def list_cols(self): method delete_col (line 214) | def delete_col(self): method col_info (line 218) | def col_info(self): method list (line 227) | def list(self, filters: dict = None, limit: int = 100) -> list: method reset (line 246) | def reset(self): FILE: mem0/vector_stores/mongodb.py class OutputData (line 22) | class OutputData(BaseModel): class MongoDB (line 28) | class MongoDB(VectorStoreBase): method __init__ (line 32) | def __init__(self, db_name: str, collection_name: str, embedding_model... method create_col (line 50) | def create_col(self): method insert (line 94) | def insert( method search (line 117) | def search(self, query: str, vectors: List[float], limit=5, filters: O... method delete (line 172) | def delete(self, vector_id: str) -> None: method update (line 188) | def update(self, vector_id: str, vector: Optional[List[float]] = None,... method get (line 213) | def get(self, vector_id: str) -> Optional[OutputData]: method list_cols (line 235) | def list_cols(self) -> List[str]: method delete_col (line 250) | def delete_col(self) -> None: method col_info (line 258) | def col_info(self) -> Dict[str, Any]: method list (line 274) | def list(self, filters: Optional[Dict] = None, limit: int = 100) -> Li... method reset (line 303) | def reset(self): method __del__ (line 309) | def __del__(self) -> None: FILE: mem0/vector_stores/neptune_analytics.py class OutputData (line 17) | class OutputData(BaseModel): class NeptuneAnalyticsVector (line 23) | class NeptuneAnalyticsVector(VectorStoreBase): method __init__ (line 39) | def __init__( method create_col (line 64) | def create_col(self, name, vector_size, distance): method insert (line 79) | def insert(self, vectors: List[list], method search (line 135) | def search( method delete (line 177) | def delete(self, vector_id: str): method update (line 194) | def update( method get (line 244) | def get(self, vector_id: str): method list_cols (line 270) | def list_cols(self): method delete_col (line 292) | def delete_col(self): method col_info (line 302) | def col_info(self): method list (line 312) | def list(self, filters: Optional[Dict] = None, limit: int = 100) -> Li... method reset (line 344) | def reset(self): method _parse_query_responses (line 353) | def _parse_query_responses(self, response: dict, with_score: bool = Fa... method execute_query (line 382) | def execute_query(self, query_string: str, params=None): method _get_where_clause (line 403) | def _get_where_clause(filters: dict): method _get_node_filter_clause (line 422) | def _get_node_filter_clause(filters: dict): method _process_success_message (line 449) | def _process_success_message(response, context): FILE: mem0/vector_stores/opensearch.py class OutputData (line 18) | class OutputData(BaseModel): class OpenSearchDB (line 24) | class OpenSearchDB(VectorStoreBase): method __init__ (line 25) | def __init__(self, **kwargs): method create_index (line 44) | def create_index(self) -> None: method create_col (line 69) | def create_col(self, name: str, vector_size: int) -> None: method insert (line 106) | def insert( method search (line 139) | def search( method delete (line 185) | def delete(self, vector_id: str) -> None: method update (line 201) | def update(self, vector_id: str, vector: Optional[List[float]] = None,... method get (line 228) | def get(self, vector_id: str) -> Optional[OutputData]: method list_cols (line 244) | def list_cols(self) -> List[str]: method delete_col (line 248) | def delete_col(self) -> None: method col_info (line 252) | def col_info(self, name: str) -> Any: method list (line 256) | def list(self, filters: Optional[Dict] = None, limit: Optional[int] = ... method reset (line 288) | def reset(self): FILE: mem0/vector_stores/pgvector.py class OutputData (line 33) | class OutputData(BaseModel): class PGVector (line 39) | class PGVector(VectorStoreBase): method __init__ (line 40) | def __init__( method _get_cursor (line 114) | def _get_cursor(self, commit: bool = False): method create_col (line 147) | def create_col(self) -> None: method insert (line 183) | def insert(self, vectors: list[list[float]], payloads=None, ids=None) ... method search (line 202) | def search( method delete (line 246) | def delete(self, vector_id: str) -> None: method update (line 256) | def update( method get (line 292) | def get(self, vector_id: str) -> OutputData: method list_cols (line 312) | def list_cols(self) -> List[str]: method delete_col (line 323) | def delete_col(self) -> None: method col_info (line 328) | def col_info(self) -> dict[str, Any]: method list (line 350) | def list( method __del__ (line 387) | def __del__(self) -> None: method reset (line 400) | def reset(self) -> None: FILE: mem0/vector_stores/pinecone.py class OutputData (line 19) | class OutputData(BaseModel): class PineconeDB (line 25) | class PineconeDB(VectorStoreBase): method __init__ (line 26) | def __init__( method create_col (line 93) | def create_col(self, vector_size: int, metric: str = "cosine"): method insert (line 124) | def insert( method _parse_output (line 160) | def _parse_output(self, data: Dict) -> List[OutputData]: method _create_filter (line 189) | def _create_filter(self, filters: Optional[Dict]) -> Dict: method search (line 206) | def search( method delete (line 244) | def delete(self, vector_id: Union[str, int]): method update (line 253) | def update(self, vector_id: Union[str, int], vector: Optional[List[flo... method get (line 278) | def get(self, vector_id: Union[str, int]) -> OutputData: method list_cols (line 297) | def list_cols(self): method delete_col (line 306) | def delete_col(self): method col_info (line 314) | def col_info(self) -> Dict: method list (line 323) | def list(self, filters: Optional[Dict] = None, limit: int = 100) -> Li... method count (line 360) | def count(self) -> int: method reset (line 376) | def reset(self): FILE: mem0/vector_stores/qdrant.py class Qdrant (line 22) | class Qdrant(VectorStoreBase): method __init__ (line 23) | def __init__( method create_col (line 78) | def create_col(self, vector_size: int, on_disk: bool, distance: Distan... method _create_filter_indexes (line 101) | def _create_filter_indexes(self): method insert (line 121) | def insert(self, vectors: list, payloads: list = None, ids: list = None): method _create_filter (line 141) | def _create_filter(self, filters: dict) -> Filter: method search (line 162) | def search(self, query: str, vectors: list, limit: int = 5, filters: d... method delete (line 184) | def delete(self, vector_id: int): method update (line 198) | def update(self, vector_id: int, vector: list = None, payload: dict = ... method get (line 210) | def get(self, vector_id: int) -> dict: method list_cols (line 223) | def list_cols(self) -> list: method delete_col (line 232) | def delete_col(self): method col_info (line 236) | def col_info(self) -> dict: method list (line 245) | def list(self, filters: dict = None, limit: int = 100) -> list: method reset (line 266) | def reset(self): FILE: mem0/vector_stores/redis.py class MemoryResult (line 40) | class MemoryResult: method __init__ (line 41) | def __init__(self, id: str, payload: dict, score: float = None): class RedisDB (line 47) | class RedisDB(VectorStoreBase): method __init__ (line 48) | def __init__( method create_col (line 78) | def create_col(self, name=None, vector_size=None, distance=None): method insert (line 121) | def insert(self, vectors: list, payloads: list = None, ids: list = None): method search (line 144) | def search(self, query: str, vectors: list, limit: int = 5, filters: d... method delete (line 184) | def delete(self, vector_id): method update (line 187) | def update(self, vector_id=None, vector=None, payload=None): method get (line 204) | def get(self, vector_id): method list_cols (line 227) | def list_cols(self): method delete_col (line 230) | def delete_col(self): method col_info (line 233) | def col_info(self, name): method reset (line 236) | def reset(self): method list (line 254) | def list(self, filters: dict = None, limit: int = None) -> list: FILE: mem0/vector_stores/s3_vectors.py class OutputData (line 18) | class OutputData(BaseModel): class S3Vectors (line 24) | class S3Vectors(VectorStoreBase): method __init__ (line 25) | def __init__( method _ensure_bucket_exists (line 42) | def _ensure_bucket_exists(self): method create_col (line 54) | def create_col(self, name, vector_size, distance="cosine"): method _parse_output (line 72) | def _parse_output(self, vectors: List[Dict]) -> List[OutputData]: method insert (line 86) | def insert(self, vectors, payloads=None, ids=None): method search (line 102) | def search(self, query, vectors, limit=5, filters=None): method delete (line 117) | def delete(self, vector_id): method update (line 124) | def update(self, vector_id, vector=None, payload=None): method get (line 128) | def get(self, vector_id) -> Optional[OutputData]: method list_cols (line 141) | def list_cols(self): method delete_col (line 145) | def delete_col(self): method col_info (line 148) | def col_info(self): method list (line 152) | def list(self, filters=None, limit=None): method reset (line 173) | def reset(self): FILE: mem0/vector_stores/supabase.py class OutputData (line 18) | class OutputData(BaseModel): class Supabase (line 24) | class Supabase(VectorStoreBase): method __init__ (line 25) | def __init__( method _preprocess_filters (line 53) | def _preprocess_filters(self, filters: Optional[dict] = None) -> Optio... method create_col (line 72) | def create_col(self, embedding_model_dims: Optional[int] = None) -> None: method insert (line 96) | def insert( method search (line 118) | def search( method delete (line 140) | def delete(self, vector_id: str): method update (line 149) | def update(self, vector_id: str, vector: Optional[List[float]] = None,... method get (line 167) | def get(self, vector_id: str) -> Optional[OutputData]: method list_cols (line 184) | def list_cols(self) -> List[str]: method delete_col (line 193) | def delete_col(self): method col_info (line 197) | def col_info(self) -> dict: method list (line 212) | def list(self, filters: Optional[dict] = None, limit: int = 100) -> Li... method reset (line 233) | def reset(self): FILE: mem0/vector_stores/upstash_vector.py class OutputData (line 17) | class OutputData(BaseModel): class UpstashVector (line 23) | class UpstashVector(VectorStoreBase): method __init__ (line 24) | def __init__( method insert (line 52) | def insert( method _stringify (line 94) | def _stringify(self, x): method search (line 97) | def search( method delete (line 152) | def delete(self, vector_id: int): method update (line 164) | def update( method get (line 186) | def get(self, vector_id: int) -> Optional[OutputData]: method list (line 208) | def list(self, filters: Optional[Dict] = None, limit: int = 100) -> Li... method create_col (line 253) | def create_col(self, name, vector_size, distance): method list_cols (line 261) | def list_cols(self) -> List[str]: method delete_col (line 269) | def delete_col(self): method col_info (line 276) | def col_info(self): method reset (line 289) | def reset(self): FILE: mem0/vector_stores/valkey.py class OutputData (line 38) | class OutputData(BaseModel): class ValkeyDB (line 44) | class ValkeyDB(VectorStoreBase): method __init__ (line 45) | def __init__( method _build_index_schema (line 93) | def _build_index_schema(self, collection_name, embedding_dims, distanc... method _create_index (line 175) | def _create_index(self, embedding_model_dims): method create_col (line 225) | def create_col(self, name=None, vector_size=None, distance=None): method insert (line 268) | def insert(self, vectors: list, payloads: list = None, ids: list = None): method _build_search_query (line 317) | def _build_search_query(self, knn_part, filters=None): method _execute_search (line 352) | def _execute_search(self, query, params): method _process_search_results (line 369) | def _process_search_results(self, results): method search (line 413) | def search(self, query: str, vectors: list, limit: int = 5, filters: d... method delete (line 452) | def delete(self, vector_id): method update (line 467) | def update(self, vector_id=None, vector=None, payload=None): method _format_timestamp (line 518) | def _format_timestamp(self, timestamp, timezone=None): method _process_document_fields (line 533) | def _process_document_fields(self, result, vector_id): method _convert_bytes (line 608) | def _convert_bytes(self, data): method get (line 623) | def get(self, vector_id): method list_cols (line 655) | def list_cols(self): method _drop_index (line 669) | def _drop_index(self, collection_name, log_level="error"): method delete_col (line 698) | def delete_col(self): method col_info (line 704) | def col_info(self, name=None): method reset (line 721) | def reset(self): method _build_list_query (line 740) | def _build_list_query(self, filters=None): method list (line 768) | def list(self, filters: dict = None, limit: int = None) -> list: FILE: mem0/vector_stores/vertex_ai_vector_search.py class OutputData (line 27) | class OutputData(BaseModel): class GoogleMatchingEngine (line 33) | class GoogleMatchingEngine(VectorStoreBase): method __init__ (line 34) | def __init__(self, **kwargs): method _parse_output (line 104) | def _parse_output(self, data: Dict) -> List[OutputData]: method _create_restriction (line 124) | def _create_restriction(self, key: str, value: Any) -> aiplatform_v1.t... method _create_datapoint (line 137) | def _create_datapoint( method insert (line 158) | def insert( method search (line 208) | def search( method delete (line 277) | def delete(self, vector_id: Optional[str] = None, ids: Optional[List[s... method update (line 318) | def update( method get (line 367) | def get(self, vector_id: str) -> Optional[OutputData]: method list_cols (line 427) | def list_cols(self) -> List[str]: method delete_col (line 435) | def delete_col(self): method col_info (line 443) | def col_info(self) -> Dict: method list (line 456) | def list(self, filters: Optional[Dict] = None, limit: Optional[int] = ... method create_col (line 489) | def create_col(self, name=None, vector_size=None, distance=None): method add (line 504) | def add(self, text: str, metadata: Optional[Dict] = None, user_id: Opt... method add_texts (line 533) | def add_texts( method from_texts (line 585) | def from_texts( method similarity_search_with_score (line 599) | def similarity_search_with_score( method similarity_search (line 621) | def similarity_search( method reset (line 632) | def reset(self): FILE: mem0/vector_stores/weaviate.py class OutputData (line 25) | class OutputData(BaseModel): class Weaviate (line 31) | class Weaviate(VectorStoreBase): method __init__ (line 32) | def __init__( method _parse_output (line 86) | def _parse_output(self, data: Dict) -> List[OutputData]: method create_col (line 119) | def create_col(self, vector_size, distance="cosine"): method insert (line 158) | def insert(self, vectors, payloads=None, ids=None): method search (line 181) | def search( method delete (line 226) | def delete(self, vector_id): method update (line 236) | def update(self, vector_id, vector=None, payload=None): method get (line 259) | def get(self, vector_id): method list_cols (line 288) | def list_cols(self): method delete_col (line 300) | def delete_col(self): method col_info (line 304) | def col_info(self): method list (line 316) | def list(self, filters=None, limit=100) -> List[OutputData]: method reset (line 339) | def reset(self): FILE: openclaw/config.ts function resolveEnvVars (line 11) | function resolveEnvVars(value: string): string { function resolveEnvVarsDeep (line 21) | function resolveEnvVarsDeep(obj: Record): Record = { constant ALLOWED_KEYS (line 156) | const ALLOWED_KEYS = [ function assertAllowedKeys (line 173) | function assertAllowedKeys( method parse (line 184) | parse(value: unknown): Mem0Config { FILE: openclaw/filtering.ts constant NOISE_MESSAGE_PATTERNS (line 13) | const NOISE_MESSAGE_PATTERNS: RegExp[] = [ constant NOISE_CONTENT_PATTERNS (line 23) | const NOISE_CONTENT_PATTERNS: Array<{ pattern: RegExp; replacement: stri... constant MAX_MESSAGE_LENGTH (line 31) | const MAX_MESSAGE_LENGTH = 2000; constant GENERIC_ASSISTANT_PATTERNS (line 38) | const GENERIC_ASSISTANT_PATTERNS: RegExp[] = [ function isNoiseMessage (line 54) | function isNoiseMessage(content: string): boolean { function isGenericAssistantMessage (line 66) | function isGenericAssistantMessage(content: string): boolean { function stripNoiseFromContent (line 77) | function stripNoiseFromContent(content: string): string { function truncateMessage (line 92) | function truncateMessage(content: string): string { function filterMessagesForExtraction (line 101) | function filterMessagesForExtraction( FILE: openclaw/index.ts function categoriesToArray (line 61) | function categoriesToArray( method register (line 79) | register(api: OpenClawPluginApi) { function registerTools (line 180) | function registerTools( function registerCli (line 707) | function registerCli( function registerHooks (line 825) | function registerHooks( FILE: openclaw/isolation.ts constant SKIP_TRIGGERS (line 17) | const SKIP_TRIGGERS = new Set(["cron", "heartbeat", "automation", "sched... function isNonInteractiveTrigger (line 26) | function isNonInteractiveTrigger( function isSubagentSession (line 45) | function isSubagentSession(sessionKey: string | undefined): boolean { function extractAgentId (line 61) | function extractAgentId(sessionKey: string | undefined): string | undefi... function effectiveUserId (line 80) | function effectiveUserId(baseUserId: string, sessionKey?: string): string { function agentUserId (line 86) | function agentUserId(baseUserId: string, agentId: string): string { function resolveUserId (line 93) | function resolveUserId( FILE: openclaw/openclaw-plugin-sdk.d.ts type OpenClawPluginApi (line 2) | interface OpenClawPluginApi { FILE: openclaw/providers.ts function normalizeMemoryItem (line 20) | function normalizeMemoryItem(raw: any): MemoryItem { function normalizeSearchResults (line 34) | function normalizeSearchResults(raw: any): MemoryItem[] { function normalizeAddResult (line 42) | function normalizeAddResult(raw: any): AddResult { class PlatformProvider (line 72) | class PlatformProvider implements Mem0Provider { method constructor (line 76) | constructor( method ensureClient (line 82) | private async ensureClient(): Promise { method _init (line 92) | private async _init(): Promise { method add (line 100) | async add( method search (line 119) | async search(query: string, options: SearchOptions): Promise { method getAll (line 143) | async getAll(options: ListOptions): Promise { method delete (line 158) | async delete(memoryId: string): Promise { class OSSProvider (line 168) | class OSSProvider implements Mem0Provider { method constructor (line 172) | constructor( method ensureMemory (line 178) | private async ensureMemory(): Promise { method _init (line 188) | private async _init(): Promise { method add (line 231) | async add( method search (line 244) | async search(query: string, options: SearchOptions): Promise { method getAll (line 273) | async getAll(options: ListOptions): Promise { method delete (line 286) | async delete(memoryId: string): Promise { function createProvider (line 296) | function createProvider( FILE: openclaw/sqlite-resilience.test.ts method constructor (line 66) | constructor(config: Record) { method add (line 70) | async add() { return { results: [] }; } method search (line 71) | async search() { return { results: [] }; } method get (line 72) | async get() { return {}; } method getAll (line 73) | async getAll() { return []; } method delete (line 74) | async delete() { } method constructor (line 126) | constructor() { method search (line 133) | async search() { return { results: [] }; } method get (line 134) | async get() { return {}; } method getAll (line 135) | async getAll() { return []; } method add (line 136) | async add() { return { results: [] }; } method delete (line 137) | async delete() { } method constructor (line 175) | constructor(config: Record) { method search (line 182) | async search() { return { results: [] }; } method get (line 183) | async get() { return {}; } method getAll (line 184) | async getAll() { return []; } method add (line 185) | async add() { return { results: [] }; } method delete (line 186) | async delete() { } method constructor (line 221) | constructor(config: Record) { method constructor (line 254) | constructor() { method search (line 260) | async search() { return []; } method get (line 261) | async get() { return {}; } method getAll (line 262) | async getAll() { return []; } method add (line 263) | async add() { return { results: [] }; } method delete (line 264) | async delete() { } FILE: openclaw/types.ts type Mem0Mode (line 5) | type Mem0Mode = "platform" | "open-source"; type Mem0Config (line 7) | type Mem0Config = { type AddOptions (line 33) | interface AddOptions { type SearchOptions (line 43) | interface SearchOptions { type ListOptions (line 54) | interface ListOptions { type MemoryItem (line 61) | interface MemoryItem { type AddResultItem (line 72) | interface AddResultItem { type AddResult (line 78) | interface AddResult { type Mem0Provider (line 82) | interface Mem0Provider { FILE: openmemory/api/alembic/env.py function run_migrations_offline (line 37) | def run_migrations_offline() -> None: function run_migrations_online (line 61) | def run_migrations_online() -> None: FILE: openmemory/api/alembic/versions/0b53c747049a_initial_migration.py function upgrade (line 20) | def upgrade() -> None: function downgrade (line 166) | def downgrade() -> None: FILE: openmemory/api/alembic/versions/add_config_table.py function upgrade (line 20) | def upgrade(): function downgrade (line 37) | def downgrade(): FILE: openmemory/api/alembic/versions/afd00efbd06b_add_unique_user_id_constraints.py function upgrade (line 19) | def upgrade() -> None: function downgrade (line 28) | def downgrade() -> None: FILE: openmemory/api/app/database.py function get_db (line 25) | def get_db(): FILE: openmemory/api/app/mcp_server.py function get_memory_client_safe (line 42) | def get_memory_client_safe(): function add_memories (line 61) | async def add_memories(text: str) -> str: function search_memory (line 145) | async def search_memory(query: str) -> str: function list_memories (line 223) | async def list_memories() -> str: function delete_memories (line 292) | async def delete_memories(memory_ids: list[str]) -> str: function delete_all_memories (line 366) | async def delete_all_memories() -> str: function handle_sse (line 431) | async def handle_sse(request: Request): function handle_get_message (line 458) | async def handle_get_message(request: Request): function handle_post_message (line 463) | async def handle_post_message(request: Request): function handle_post_message (line 466) | async def handle_post_message(request: Request): function setup_mcp_server (line 487) | def setup_mcp_server(app: FastAPI): FILE: openmemory/api/app/models.py function get_current_utc_time (line 25) | def get_current_utc_time(): class MemoryState (line 30) | class MemoryState(enum.Enum): class User (line 37) | class User(Base): class App (line 53) | class App(Base): class Config (line 74) | class Config(Base): class Memory (line 85) | class Memory(Base): class Category (line 112) | class Category(Base): class AccessControl (line 132) | class AccessControl(Base): class ArchivePolicy (line 148) | class ArchivePolicy(Base): class MemoryStatusHistory (line 161) | class MemoryStatusHistory(Base): class MemoryAccessLog (line 176) | class MemoryAccessLog(Base): function categorize_memory (line 190) | def categorize_memory(memory: Memory, db: Session) -> None: function after_memory_insert (line 231) | def after_memory_insert(mapper, connection, target): function after_memory_update (line 239) | def after_memory_update(mapper, connection, target): FILE: openmemory/api/app/routers/apps.py function get_app_or_404 (line 13) | def get_app_or_404(db: Session, app_id: UUID) -> App: function list_apps (line 21) | async def list_apps( function get_app_details (line 102) | async def get_app_details( function list_app_memories (line 127) | async def list_app_memories( function list_app_accessed_memories (line 163) | async def list_app_accessed_memories( function update_app_details (line 215) | async def update_app_details( FILE: openmemory/api/app/routers/backup.py class ExportRequest (line 26) | class ExportRequest(BaseModel): function _iso (line 33) | def _iso(dt: Optional[datetime]) -> Optional[str]: function _parse_iso (line 41) | def _parse_iso(dt: Optional[str]) -> Optional[datetime]: function _export_sqlite (line 52) | def _export_sqlite(db: Session, req: ExportRequest) -> Dict[str, Any]: function _export_logical_memories_gz (line 177) | def _export_logical_memories_gz( function export_backup (line 240) | async def export_backup(req: ExportRequest, db: Session = Depends(get_db)): function import_backup (line 266) | async def import_backup( FILE: openmemory/api/app/routers/config.py class LLMConfig (line 12) | class LLMConfig(BaseModel): class LLMProvider (line 19) | class LLMProvider(BaseModel): class EmbedderConfig (line 23) | class EmbedderConfig(BaseModel): class EmbedderProvider (line 28) | class EmbedderProvider(BaseModel): class VectorStoreProvider (line 32) | class VectorStoreProvider(BaseModel): class OpenMemoryConfig (line 37) | class OpenMemoryConfig(BaseModel): class Mem0Config (line 40) | class Mem0Config(BaseModel): class ConfigSchema (line 45) | class ConfigSchema(BaseModel): function get_default_configuration (line 49) | def get_default_configuration(): function get_config_from_db (line 76) | def get_config_from_db(db: Session, key: str = "main"): function save_config_to_db (line 120) | def save_config_to_db(db: Session, config: Dict[str, Any], key: str = "m... function get_configuration (line 136) | async def get_configuration(db: Session = Depends(get_db)): function update_configuration (line 142) | async def update_configuration(config: ConfigSchema, db: Session = Depen... function patch_configuration (line 160) | async def patch_configuration(config_update: ConfigSchema, db: Session =... function reset_configuration (line 181) | async def reset_configuration(db: Session = Depends(get_db)): function get_llm_configuration (line 198) | async def get_llm_configuration(db: Session = Depends(get_db)): function update_llm_configuration (line 205) | async def update_llm_configuration(llm_config: LLMProvider, db: Session ... function get_embedder_configuration (line 222) | async def get_embedder_configuration(db: Session = Depends(get_db)): function update_embedder_configuration (line 229) | async def update_embedder_configuration(embedder_config: EmbedderProvide... function get_vector_store_configuration (line 246) | async def get_vector_store_configuration(db: Session = Depends(get_db)): function update_vector_store_configuration (line 253) | async def update_vector_store_configuration(vector_store_config: VectorS... function get_openmemory_configuration (line 270) | async def get_openmemory_configuration(db: Session = Depends(get_db)): function update_openmemory_configuration (line 277) | async def update_openmemory_configuration(openmemory_config: OpenMemoryC... FILE: openmemory/api/app/routers/memories.py function get_memory_or_404 (line 30) | def get_memory_or_404(db: Session, memory_id: UUID) -> Memory: function update_memory_state (line 37) | def update_memory_state(db: Session, memory_id: UUID, new_state: MemoryS... function get_accessible_memory_ids (line 60) | def get_accessible_memory_ids(db: Session, app_id: UUID) -> Set[UUID]: function list_memories (line 102) | async def list_memories( function get_categories (line 190) | async def get_categories( class CreateMemoryRequest (line 212) | class CreateMemoryRequest(BaseModel): function create_memory (line 222) | async def create_memory( function get_memory (line 333) | async def get_memory( class DeleteMemoriesRequest (line 350) | class DeleteMemoriesRequest(BaseModel): function delete_memories (line 356) | async def delete_memories( function archive_memories (line 395) | async def archive_memories( class PauseMemoriesRequest (line 405) | class PauseMemoriesRequest(BaseModel): function pause_memories (line 416) | async def pause_memories( function get_memory_access_log (line 489) | async def get_memory_access_log( class UpdateMemoryRequest (line 512) | class UpdateMemoryRequest(BaseModel): function update_memory (line 518) | async def update_memory( class FilterMemoriesRequest (line 532) | class FilterMemoriesRequest(BaseModel): function filter_memories (line 546) | async def filter_memories( function get_related_memories (line 640) | async def get_related_memories( FILE: openmemory/api/app/routers/stats.py function get_profile (line 9) | async def get_profile( FILE: openmemory/api/app/schemas.py class MemoryBase (line 8) | class MemoryBase(BaseModel): class MemoryCreate (line 12) | class MemoryCreate(MemoryBase): class Category (line 17) | class Category(BaseModel): class App (line 21) | class App(BaseModel): class Memory (line 26) | class Memory(MemoryBase): class MemoryUpdate (line 38) | class MemoryUpdate(BaseModel): class MemoryResponse (line 44) | class MemoryResponse(BaseModel): method convert_to_epoch (line 55) | def convert_to_epoch(cls, v): class PaginatedMemoryResponse (line 60) | class PaginatedMemoryResponse(BaseModel): FILE: openmemory/api/app/utils/categorization.py class MemoryCategories (line 14) | class MemoryCategories(BaseModel): function get_categories_for_memory (line 19) | def get_categories_for_memory(memory: str) -> List[str]: FILE: openmemory/api/app/utils/db.py function get_or_create_user (line 7) | def get_or_create_user(db: Session, user_id: str) -> User: function get_or_create_app (line 18) | def get_or_create_app(db: Session, user: User, app_id: str) -> App: function get_user_and_app (line 29) | def get_user_and_app(db: Session, user_id: str, app_id: str) -> Tuple[Us... FILE: openmemory/api/app/utils/memory.py function _get_config_hash (line 44) | def _get_config_hash(config_dict): function _get_docker_host_url (line 50) | def _get_docker_host_url(): function _fix_ollama_urls (line 102) | def _fix_ollama_urls(config_section): function reset_memory_client (line 129) | def reset_memory_client(): function _build_ollama_llm_config (line 138) | def _build_ollama_llm_config(model, api_key, base_url, ollama_base_url): function _build_openai_llm_config (line 145) | def _build_openai_llm_config(model, api_key, base_url, ollama_base_url): function _create_llm_config (line 161) | def _create_llm_config(provider, model, api_key, base_url, ollama_base_u... function _build_ollama_embedder_config (line 187) | def _build_ollama_embedder_config(model, api_key, base_url, ollama_base_... function _build_openai_embedder_config (line 193) | def _build_openai_embedder_config(model, api_key, base_url, ollama_base_... function _create_embedder_config (line 209) | def _create_embedder_config(provider, model, api_key, base_url, ollama_b... function get_default_memory_config (line 227) | def get_default_memory_config(): function _parse_environment_variables (line 379) | def _parse_environment_variables(config_dict): function get_memory_client (line 404) | def get_memory_client(custom_instructions: str = None): function get_default_user_id (line 503) | def get_default_user_id(): FILE: openmemory/api/app/utils/permissions.py function check_memory_access_permissions (line 8) | def check_memory_access_permissions( FILE: openmemory/api/main.py function create_default_user (line 27) | def create_default_user(): function create_default_app (line 46) | def create_default_app(): FILE: openmemory/ui/app/apps/[appId]/components/MemoryCard.tsx type MemoryCardProps (line 6) | interface MemoryCardProps { function MemoryCard (line 17) | function MemoryCard({ FILE: openmemory/ui/app/apps/[appId]/page.tsx function AppDetailsPage (line 16) | function AppDetailsPage() { FILE: openmemory/ui/app/apps/components/AppCard.tsx type AppCardProps (line 15) | interface AppCardProps { function AppCard (line 19) | function AppCard({ app }: AppCardProps) { FILE: openmemory/ui/app/apps/components/AppFilters.tsx function AppFilters (line 41) | function AppFilters() { FILE: openmemory/ui/app/apps/components/AppGrid.tsx function AppGrid (line 9) | function AppGrid() { FILE: openmemory/ui/app/apps/page.tsx function AppsPage (line 7) | function AppsPage() { FILE: openmemory/ui/app/layout.tsx function RootLayout (line 15) | function RootLayout({ FILE: openmemory/ui/app/loading.tsx function Loading (line 1) | function Loading() { FILE: openmemory/ui/app/memories/components/CreateMemoryDialog.tsx function CreateMemoryDialog (line 21) | function CreateMemoryDialog() { FILE: openmemory/ui/app/memories/components/FilterComponent.tsx function FilterComponent (line 53) | function FilterComponent() { FILE: openmemory/ui/app/memories/components/MemoriesSection.tsx function MemoriesSection (line 12) | function MemoriesSection() { FILE: openmemory/ui/app/memories/components/MemoryFilters.tsx function MemoryFilters (line 22) | function MemoryFilters() { FILE: openmemory/ui/app/memories/components/MemoryPagination.tsx type MemoryPaginationProps (line 4) | interface MemoryPaginationProps { function MemoryPagination (line 10) | function MemoryPagination({ FILE: openmemory/ui/app/memories/components/MemoryTable.tsx function MemoryTable (line 52) | function MemoryTable() { FILE: openmemory/ui/app/memories/components/PageSizeSelector.tsx type PageSizeSelectorProps (line 9) | interface PageSizeSelectorProps { function PageSizeSelector (line 14) | function PageSizeSelector({ FILE: openmemory/ui/app/memories/page.tsx function MemoriesPage (line 11) | function MemoriesPage() { FILE: openmemory/ui/app/memory/[id]/components/AccessLog.tsx type AccessLogEntry (line 9) | interface AccessLogEntry { type AccessLogProps (line 15) | interface AccessLogProps { function AccessLog (line 19) | function AccessLog({ memoryId }: AccessLogProps) { FILE: openmemory/ui/app/memory/[id]/components/MemoryActions.tsx type MemoryActionsProps (line 14) | interface MemoryActionsProps { function MemoryActions (line 20) | function MemoryActions({ FILE: openmemory/ui/app/memory/[id]/components/MemoryDetails.tsx type MemoryDetailsProps (line 16) | interface MemoryDetailsProps { function MemoryDetails (line 20) | function MemoryDetails({ memory_id }: MemoryDetailsProps) { FILE: openmemory/ui/app/memory/[id]/components/RelatedMemories.tsx type RelatedMemoriesProps (line 9) | interface RelatedMemoriesProps { function RelatedMemories (line 13) | function RelatedMemories({ memoryId }: RelatedMemoriesProps) { FILE: openmemory/ui/app/memory/[id]/page.tsx function MemoryContent (line 15) | function MemoryContent({ id }: { id: string }) { function MemoryPage (line 47) | function MemoryPage({ FILE: openmemory/ui/app/not-found.tsx type NotFoundProps (line 5) | interface NotFoundProps { function NotFound (line 19) | function NotFound({ FILE: openmemory/ui/app/page.tsx function DashboardPage (line 9) | function DashboardPage() { FILE: openmemory/ui/app/providers.tsx function Providers (line 6) | function Providers({ children }: { children: React.ReactNode }) { FILE: openmemory/ui/app/settings/page.tsx function SettingsPage (line 26) | function SettingsPage() { FILE: openmemory/ui/components/Navbar.tsx function Navbar (line 17) | function Navbar() { FILE: openmemory/ui/components/form-view.tsx type FormViewProps (line 17) | interface FormViewProps { function FormView (line 22) | function FormView({ settings, onChange }: FormViewProps) { FILE: openmemory/ui/components/json-editor.tsx type JsonEditorProps (line 11) | interface JsonEditorProps { function JsonEditor (line 16) | function JsonEditor({ value, onChange }: JsonEditorProps) { FILE: openmemory/ui/components/shared/categories.tsx type Category (line 35) | type Category = string; FILE: openmemory/ui/components/shared/update-memory.tsx type UpdateMemoryProps (line 20) | interface UpdateMemoryProps { FILE: openmemory/ui/components/theme-provider.tsx function ThemeProvider (line 9) | function ThemeProvider({ children, ...props }: ThemeProviderProps) { FILE: openmemory/ui/components/types.ts type Category (line 1) | type Category = "personal" | "work" | "health" | "finance" | "travel" | ... type Client (line 2) | type Client = "chrome" | "chatgpt" | "cursor" | "windsurf" | "terminal" ... type Memory (line 4) | interface Memory { FILE: openmemory/ui/components/ui/badge.tsx type BadgeProps (line 26) | interface BadgeProps function Badge (line 30) | function Badge({ className, variant, ...props }: BadgeProps) { FILE: openmemory/ui/components/ui/button.tsx type ButtonProps (line 36) | interface ButtonProps FILE: openmemory/ui/components/ui/calendar.tsx type CalendarProps (line 10) | type CalendarProps = React.ComponentProps function Calendar (line 12) | function Calendar({ FILE: openmemory/ui/components/ui/carousel.tsx type CarouselApi (line 12) | type CarouselApi = UseEmblaCarouselType[1] type UseCarouselParameters (line 13) | type UseCarouselParameters = Parameters type CarouselOptions (line 14) | type CarouselOptions = UseCarouselParameters[0] type CarouselPlugin (line 15) | type CarouselPlugin = UseCarouselParameters[1] type CarouselProps (line 17) | type CarouselProps = { type CarouselContextProps (line 24) | type CarouselContextProps = { function useCarousel (line 35) | function useCarousel() { FILE: openmemory/ui/components/ui/chart.tsx constant THEMES (line 9) | const THEMES = { light: "", dark: ".dark" } as const type ChartConfig (line 11) | type ChartConfig = { type ChartContextProps (line 21) | type ChartContextProps = { function useChart (line 27) | function useChart() { function getPayloadConfigFromPayload (line 320) | function getPayloadConfigFromPayload( FILE: openmemory/ui/components/ui/form.tsx type FormFieldContextValue (line 20) | type FormFieldContextValue< type FormItemContextValue (line 67) | type FormItemContextValue = { FILE: openmemory/ui/components/ui/pagination.tsx type PaginationLinkProps (line 37) | type PaginationLinkProps = { FILE: openmemory/ui/components/ui/sheet.tsx type SheetContentProps (line 52) | interface SheetContentProps FILE: openmemory/ui/components/ui/sidebar.tsx constant SIDEBAR_COOKIE_NAME (line 22) | const SIDEBAR_COOKIE_NAME = "sidebar:state" constant SIDEBAR_COOKIE_MAX_AGE (line 23) | const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7 constant SIDEBAR_WIDTH (line 24) | const SIDEBAR_WIDTH = "16rem" constant SIDEBAR_WIDTH_MOBILE (line 25) | const SIDEBAR_WIDTH_MOBILE = "18rem" constant SIDEBAR_WIDTH_ICON (line 26) | const SIDEBAR_WIDTH_ICON = "3rem" constant SIDEBAR_KEYBOARD_SHORTCUT (line 27) | const SIDEBAR_KEYBOARD_SHORTCUT = "b" type SidebarContext (line 29) | type SidebarContext = { function useSidebar (line 41) | function useSidebar() { FILE: openmemory/ui/components/ui/skeleton.tsx function Skeleton (line 3) | function Skeleton({ FILE: openmemory/ui/components/ui/sonner.tsx type ToasterProps (line 6) | type ToasterProps = React.ComponentProps FILE: openmemory/ui/components/ui/toast.tsx type ToastProps (line 115) | type ToastProps = React.ComponentPropsWithoutRef type ToastActionElement (line 117) | type ToastActionElement = React.ReactElement FILE: openmemory/ui/components/ui/toaster.tsx function Toaster (line 13) | function Toaster() { FILE: openmemory/ui/components/ui/use-mobile.tsx constant MOBILE_BREAKPOINT (line 3) | const MOBILE_BREAKPOINT = 768 function useIsMobile (line 5) | function useIsMobile() { FILE: openmemory/ui/components/ui/use-toast.ts constant TOAST_LIMIT (line 11) | const TOAST_LIMIT = 1 constant TOAST_REMOVE_DELAY (line 12) | const TOAST_REMOVE_DELAY = 1000000 type ToasterToast (line 14) | type ToasterToast = ToastProps & { function genId (line 30) | function genId() { type ActionType (line 35) | type ActionType = typeof actionTypes type Action (line 37) | type Action = type State (line 55) | interface State { function dispatch (line 136) | function dispatch(action: Action) { type Toast (line 143) | type Toast = Omit function toast (line 145) | function toast({ ...props }: Toast) { function useToast (line 174) | function useToast() { FILE: openmemory/ui/hooks/use-mobile.tsx constant MOBILE_BREAKPOINT (line 3) | const MOBILE_BREAKPOINT = 768 function useIsMobile (line 5) | function useIsMobile() { FILE: openmemory/ui/hooks/use-toast.ts constant TOAST_LIMIT (line 11) | const TOAST_LIMIT = 1 constant TOAST_REMOVE_DELAY (line 12) | const TOAST_REMOVE_DELAY = 1000000 type ToasterToast (line 14) | type ToasterToast = ToastProps & { function genId (line 30) | function genId() { type ActionType (line 35) | type ActionType = typeof actionTypes type Action (line 37) | type Action = type State (line 55) | interface State { function dispatch (line 136) | function dispatch(action: Action) { type Toast (line 143) | type Toast = Omit function toast (line 145) | function toast({ ...props }: Toast) { function useToast (line 174) | function useToast() { FILE: openmemory/ui/hooks/useAppsApi.ts type ApiResponse (line 24) | interface ApiResponse { type MemoriesResponse (line 31) | interface MemoriesResponse { type AccessedMemoriesResponse (line 38) | interface AccessedMemoriesResponse { type FetchAppsParams (line 45) | interface FetchAppsParams { type UseAppsApiReturn (line 54) | interface UseAppsApiReturn { FILE: openmemory/ui/hooks/useConfig.ts type UseConfigApiReturn (line 19) | interface UseConfigApiReturn { FILE: openmemory/ui/hooks/useFiltersApi.ts type CategoriesResponse (line 15) | interface CategoriesResponse { type UseFiltersApiReturn (line 20) | interface UseFiltersApiReturn { FILE: openmemory/ui/hooks/useMemoriesApi.ts type SimpleMemory (line 9) | interface SimpleMemory { type ApiMemoryItem (line 19) | interface ApiMemoryItem { type ApiResponse (line 31) | interface ApiResponse { type AccessLogEntry (line 39) | interface AccessLogEntry { type AccessLogResponse (line 45) | interface AccessLogResponse { type RelatedMemoryItem (line 52) | interface RelatedMemoryItem { type RelatedMemoriesResponse (line 63) | interface RelatedMemoriesResponse { type UseMemoriesApiReturn (line 71) | interface UseMemoriesApiReturn { FILE: openmemory/ui/hooks/useStats.ts type SimpleMemory (line 9) | interface SimpleMemory { type APIStatsResponse (line 19) | interface APIStatsResponse { type UseMemoriesApiReturn (line 26) | interface UseMemoriesApiReturn { FILE: openmemory/ui/skeleton/AppCardSkeleton.tsx function AppCardSkeleton (line 8) | function AppCardSkeleton() { FILE: openmemory/ui/skeleton/AppDetailCardSkeleton.tsx function AppDetailCardSkeleton (line 1) | function AppDetailCardSkeleton() { FILE: openmemory/ui/skeleton/AppFiltersSkeleton.tsx function AppFiltersSkeleton (line 1) | function AppFiltersSkeleton() { FILE: openmemory/ui/skeleton/MemoryCardSkeleton.tsx function MemoryCardSkeleton (line 1) | function MemoryCardSkeleton() { FILE: openmemory/ui/skeleton/MemorySkeleton.tsx function MemorySkeleton (line 3) | function MemorySkeleton() { FILE: openmemory/ui/skeleton/MemoryTableSkeleton.tsx function MemoryTableSkeleton (line 8) | function MemoryTableSkeleton() { FILE: openmemory/ui/store/appsSlice.ts type AppMemory (line 3) | interface AppMemory { type AccessedMemory (line 19) | interface AccessedMemory { type AppDetails (line 24) | interface AppDetails { type App (line 32) | interface App { type MemoriesState (line 40) | interface MemoriesState { type AccessedMemoriesState (line 48) | interface AccessedMemoriesState { type AppsState (line 56) | interface AppsState { FILE: openmemory/ui/store/configSlice.ts type LLMConfig (line 3) | interface LLMConfig { type LLMProvider (line 11) | interface LLMProvider { type EmbedderConfig (line 16) | interface EmbedderConfig { type EmbedderProvider (line 22) | interface EmbedderProvider { type Mem0Config (line 27) | interface Mem0Config { type OpenMemoryConfig (line 32) | interface OpenMemoryConfig { type ConfigState (line 36) | interface ConfigState { FILE: openmemory/ui/store/filtersSlice.ts type Category (line 3) | interface Category { type FiltersState (line 11) | interface FiltersState { FILE: openmemory/ui/store/memoriesSlice.ts type AccessLogEntry (line 5) | interface AccessLogEntry { type MemoriesState (line 12) | interface MemoriesState { FILE: openmemory/ui/store/profileSlice.ts type ProfileState (line 3) | interface ProfileState { FILE: openmemory/ui/store/store.ts type RootState (line 21) | type RootState = ReturnType; type AppDispatch (line 23) | type AppDispatch = typeof store.dispatch; FILE: openmemory/ui/store/uiSlice.ts type DialogState (line 3) | interface DialogState { type UIState (line 11) | interface UIState { FILE: server/main.py class Message (line 68) | class Message(BaseModel): class MemoryCreate (line 73) | class MemoryCreate(BaseModel): class SearchRequest (line 81) | class SearchRequest(BaseModel): function set_config (line 90) | def set_config(config: Dict[str, Any]): function add_memory (line 98) | def add_memory(memory_create: MemoryCreate): function get_all_memories (line 113) | def get_all_memories( function get_memory (line 132) | def get_memory(memory_id: str): function search_memories (line 142) | def search_memories(search_req: SearchRequest): function update_memory (line 153) | def update_memory(memory_id: str, updated_memory: Dict[str, Any]): function memory_history (line 171) | def memory_history(memory_id: str): function delete_memory (line 181) | def delete_memory(memory_id: str): function delete_all_memories (line 192) | def delete_all_memories( function reset_memory (line 212) | def reset_memory(): function home (line 223) | def home(): FILE: skills/mem0/scripts/mem0_doc_search.py function fetch_url (line 79) | def fetch_url(url: str) -> str: function search_docs (line 91) | def search_docs(query: str, section: str | None = None) -> dict: function fetch_page (line 136) | def fetch_page(page_path: str) -> dict: function get_index (line 143) | def get_index() -> dict: function list_section (line 150) | def list_section(section: str) -> dict: function main (line 160) | def main(): FILE: tests/configs/test_prompts.py function test_get_update_memory_messages (line 4) | def test_get_update_memory_messages(): function test_get_update_memory_messages_empty_memory (line 22) | def test_get_update_memory_messages_empty_memory(): function test_get_update_memory_messages_non_empty_memory (line 40) | def test_get_update_memory_messages_non_empty_memory(): FILE: tests/embeddings/test_azure_openai_embeddings.py function mock_openai_client (line 10) | def mock_openai_client(): function test_embed_text (line 17) | def test_embed_text(mock_openai_client): function test_embed_text_with_default_headers (line 38) | def test_embed_text_with_default_headers(default_headers, expected_header): function base_embedder_config (line 56) | def base_embedder_config(): function test_init_with_api_key (line 72) | def test_init_with_api_key(monkeypatch, base_embedder_config): function test_init_with_env_vars (line 98) | def test_init_with_env_vars(monkeypatch, base_embedder_config): function test_init_with_default_azure_credential (line 117) | def test_init_with_default_azure_credential(monkeypatch, base_embedder_c... function test_init_with_placeholder_api_key (line 143) | def test_init_with_placeholder_api_key(monkeypatch, base_embedder_config): FILE: tests/embeddings/test_fastembed_embeddings.py function mock_fastembed_client (line 14) | def mock_fastembed_client(): function test_embed_with_jina_model (line 21) | def test_embed_with_jina_model(mock_fastembed_client): function test_embed_removes_newlines (line 35) | def test_embed_removes_newlines(mock_fastembed_client): FILE: tests/embeddings/test_gemini_emeddings.py function mock_genai (line 10) | def mock_genai(): function config (line 18) | def config(): function test_embed_query (line 22) | def test_embed_query(mock_genai, config): function test_embed_returns_empty_list_if_none (line 37) | def test_embed_returns_empty_list_if_none(mock_genai, config): function test_embed_raises_on_error (line 46) | def test_embed_raises_on_error(mock_genai, config): function test_config_initialization (line 55) | def test_config_initialization(config): FILE: tests/embeddings/test_huggingface_embeddings.py function mock_sentence_transformer (line 11) | def mock_sentence_transformer(): function test_embed_default_model (line 18) | def test_embed_default_model(mock_sentence_transformer): function test_embed_custom_model (line 29) | def test_embed_custom_model(mock_sentence_transformer): function test_embed_with_model_kwargs (line 40) | def test_embed_with_model_kwargs(mock_sentence_transformer): function test_embed_sets_embedding_dims (line 51) | def test_embed_sets_embedding_dims(mock_sentence_transformer): function test_embed_with_custom_embedding_dims (line 61) | def test_embed_with_custom_embedding_dims(mock_sentence_transformer): function test_embed_with_huggingface_base_url (line 75) | def test_embed_with_huggingface_base_url(): FILE: tests/embeddings/test_lm_studio_embeddings.py function mock_lm_studio_client (line 10) | def mock_lm_studio_client(): function test_embed_text (line 18) | def test_embed_text(mock_lm_studio_client): FILE: tests/embeddings/test_ollama_embeddings.py function mock_ollama_client (line 10) | def mock_ollama_client(): function test_embed_text (line 18) | def test_embed_text(mock_ollama_client): function test_ensure_model_exists (line 33) | def test_ensure_model_exists(mock_ollama_client): function test_ensure_model_exists_normalizes_latest_tag (line 46) | def test_ensure_model_exists_normalizes_latest_tag(mock_ollama_client): function test_embed_empty_response_raises (line 55) | def test_embed_empty_response_raises(mock_ollama_client): FILE: tests/embeddings/test_openai_embeddings.py function mock_openai_client (line 10) | def mock_openai_client(): function test_embed_default_model (line 17) | def test_embed_default_model(mock_openai_client): function test_embed_custom_model (line 32) | def test_embed_custom_model(mock_openai_client): function test_embed_removes_newlines (line 47) | def test_embed_removes_newlines(mock_openai_client): function test_embed_without_api_key_env_var (line 62) | def test_embed_without_api_key_env_var(mock_openai_client): function test_embed_uses_environment_api_key (line 77) | def test_embed_uses_environment_api_key(mock_openai_client, monkeypatch): function test_embed_passes_encoding_format_float (line 93) | def test_embed_passes_encoding_format_float(mock_openai_client): FILE: tests/embeddings/test_vertexai_embeddings.py function mock_text_embedding_model (line 9) | def mock_text_embedding_model(): function mock_os_environ (line 17) | def mock_os_environ(): function mock_config (line 23) | def mock_config(): function mock_embedding_types (line 30) | def mock_embedding_types(): function mock_text_embedding_input (line 44) | def mock_text_embedding_input(): function test_embed_default_model (line 50) | def test_embed_default_model(mock_text_embedding_model, mock_os_environ,... function test_embed_custom_model (line 70) | def test_embed_custom_model(mock_text_embedding_model, mock_os_environ, ... function test_embed_with_memory_action (line 92) | def test_embed_with_memory_action( function test_credentials_from_environment (line 118) | def test_credentials_from_environment(mock_os, mock_text_embedding_model... function test_missing_credentials (line 127) | def test_missing_credentials(mock_os, mock_text_embedding_model, mock_co... function test_embed_with_different_dimensions (line 138) | def test_embed_with_different_dimensions(mock_text_embedding_model, mock... function test_invalid_memory_action (line 153) | def test_invalid_memory_action(mock_text_embedding_model, mock_config): FILE: tests/llms/test_azure_openai.py function mock_openai_client (line 15) | def mock_openai_client(): function test_generate_response_without_tools (line 22) | def test_generate_response_without_tools(mock_openai_client): function test_generate_response_with_tools (line 42) | def test_generate_response_with_tools(mock_openai_client): function test_generate_with_http_proxies (line 98) | def test_generate_with_http_proxies(default_headers): function test_init_with_api_key (line 134) | def test_init_with_api_key(monkeypatch): function test_init_with_env_vars (line 169) | def test_init_with_env_vars(monkeypatch): function test_init_with_default_azure_credential (line 198) | def test_init_with_default_azure_credential(monkeypatch): function test_init_with_placeholder_api_key (line 230) | def test_init_with_placeholder_api_key(monkeypatch): FILE: tests/llms/test_azure_openai_structured.py class DummyAzureKwargs (line 6) | class DummyAzureKwargs: method __init__ (line 7) | def __init__( class DummyConfig (line 22) | class DummyConfig: method __init__ (line 23) | def __init__( function test_init_with_api_key (line 41) | def test_init_with_api_key(mock_azure_openai): function test_init_with_default_credential (line 54) | def test_init_with_default_credential(mock_credential, mock_token_provid... function test_init_with_env_vars (line 68) | def test_init_with_env_vars(monkeypatch, mocker): function test_init_with_placeholder_api_key_uses_default_credential (line 84) | def test_init_with_placeholder_api_key_uses_default_credential( FILE: tests/llms/test_deepseek.py function mock_deepseek_client (line 12) | def mock_deepseek_client(): function test_deepseek_llm_base_url (line 19) | def test_deepseek_llm_base_url(): function test_generate_response_without_tools (line 46) | def test_generate_response_without_tools(mock_deepseek_client): function test_generate_response_with_tools (line 66) | def test_generate_response_with_tools(mock_deepseek_client): FILE: tests/llms/test_gemini.py function mock_gemini_client (line 11) | def mock_gemini_client(): function test_generate_response_without_tools (line 18) | def test_generate_response_without_tools(mock_gemini_client: Mock): function test_generate_response_with_tools (line 53) | def test_generate_response_with_tools(mock_gemini_client: Mock): FILE: tests/llms/test_groq.py function mock_groq_client (line 10) | def mock_groq_client(): function test_generate_response_without_tools (line 17) | def test_generate_response_without_tools(mock_groq_client): function test_generate_response_with_tools (line 37) | def test_generate_response_with_tools(mock_groq_client): FILE: tests/llms/test_langchain.py function mock_langchain_model (line 18) | def mock_langchain_model(): function test_langchain_initialization (line 25) | def test_langchain_initialization(mock_langchain_model): function test_generate_response (line 37) | def test_generate_response(mock_langchain_model): function test_generate_response_with_tools (line 71) | def test_generate_response_with_tools(mock_langchain_model): function test_invalid_model (line 116) | def test_invalid_model(): function test_missing_model (line 124) | def test_missing_model(): FILE: tests/llms/test_litellm.py function mock_litellm (line 10) | def mock_litellm(): function test_generate_response_with_unsupported_model (line 15) | def test_generate_response_with_unsupported_model(mock_litellm): function test_generate_response_without_tools (line 26) | def test_generate_response_without_tools(mock_litellm): function test_generate_response_with_tools (line 47) | def test_generate_response_with_tools(mock_litellm): FILE: tests/llms/test_lm_studio.py function mock_lm_studio_client (line 10) | def mock_lm_studio_client(): function test_generate_response_without_tools (line 20) | def test_generate_response_without_tools(mock_lm_studio_client): function test_generate_response_specifying_response_format (line 47) | def test_generate_response_specifying_response_format(mock_lm_studio_cli... FILE: tests/llms/test_ollama.py function mock_ollama_client (line 10) | def mock_ollama_client(): function test_generate_response_without_tools (line 18) | def test_generate_response_without_tools(mock_ollama_client): function test_generate_response_with_tools_passes_tools_to_client (line 37) | def test_generate_response_with_tools_passes_tools_to_client(mock_ollama... function test_generate_response_with_tools_no_tool_calls_in_response (line 81) | def test_generate_response_with_tools_no_tool_calls_in_response(mock_oll... function test_generate_response_with_tools_string_arguments (line 97) | def test_generate_response_with_tools_string_arguments(mock_ollama_client): function test_parse_response_with_tools_object_style (line 119) | def test_parse_response_with_tools_object_style(mock_ollama_client): FILE: tests/llms/test_openai.py function mock_openai_client (line 11) | def mock_openai_client(): function test_openai_llm_base_url (line 18) | def test_openai_llm_base_url(): function test_generate_response_without_tools (line 43) | def test_generate_response_without_tools(mock_openai_client): function test_generate_response_with_tools (line 63) | def test_generate_response_with_tools(mock_openai_client): function test_response_callback_invocation (line 109) | def test_response_callback_invocation(mock_openai_client): function test_no_response_callback (line 133) | def test_no_response_callback(mock_openai_client): function test_callback_exception_handling (line 151) | def test_callback_exception_handling(mock_openai_client): function test_callback_with_tools (line 173) | def test_callback_with_tools(mock_openai_client): FILE: tests/llms/test_together.py function mock_together_client (line 10) | def mock_together_client(): function test_generate_response_without_tools (line 17) | def test_generate_response_without_tools(mock_together_client): function test_generate_response_with_tools (line 37) | def test_generate_response_with_tools(mock_together_client): FILE: tests/llms/test_vllm.py function mock_vllm_client (line 11) | def mock_vllm_client(): function test_generate_response_without_tools (line 18) | def test_generate_response_without_tools(mock_vllm_client): function test_generate_response_with_tools (line 38) | def test_generate_response_with_tools(mock_vllm_client): function create_mocked_memory (line 91) | def create_mocked_memory(): function create_mocked_async_memory (line 117) | def create_mocked_async_memory(): function test_thinking_tags_sync (line 143) | def test_thinking_tags_sync(): function test_async_thinking_tags_async (line 169) | async def test_async_thinking_tags_async(): FILE: tests/memory/test_json_prompt_fix.py class TestEnsureJsonInstruction (line 18) | class TestEnsureJsonInstruction: method test_appends_when_json_missing_from_both_prompts (line 25) | def test_appends_when_json_missing_from_both_prompts(self): method test_no_change_when_json_in_system_prompt (line 34) | def test_no_change_when_json_in_system_prompt(self): method test_no_change_when_json_in_user_prompt (line 40) | def test_no_change_when_json_in_user_prompt(self): method test_user_prompt_never_modified (line 47) | def test_user_prompt_never_modified(self): method test_case_insensitive_lowercase (line 57) | def test_case_insensitive_lowercase(self): method test_case_insensitive_uppercase (line 62) | def test_case_insensitive_uppercase(self): method test_case_insensitive_mixed (line 67) | def test_case_insensitive_mixed(self): method test_case_insensitive_in_user_prompt (line 72) | def test_case_insensitive_in_user_prompt(self): method test_various_custom_prompts (line 98) | def test_various_custom_prompts(self, prompt, should_append): method test_empty_system_prompt (line 112) | def test_empty_system_prompt(self): method test_whitespace_only_system_prompt (line 117) | def test_whitespace_only_system_prompt(self): method test_preserves_original_prompt_content (line 122) | def test_preserves_original_prompt_content(self): method test_appended_instruction_mentions_facts_key (line 129) | def test_appended_instruction_mentions_facts_key(self): method test_idempotent_when_already_has_json (line 136) | def test_idempotent_when_already_has_json(self): method test_json_in_curly_braces_not_detected (line 145) | def test_json_in_curly_braces_not_detected(self): method test_default_prompts_already_contain_json (line 162) | def test_default_prompts_already_contain_json(self): method test_fix_applied_in_sync_memory_class (line 187) | def test_fix_applied_in_sync_memory_class(self): method test_fix_applied_in_async_memory_class (line 197) | def test_fix_applied_in_async_memory_class(self): method test_import_exists_in_main (line 207) | def test_import_exists_in_main(self): FILE: tests/memory/test_kuzu.py class TestKuzu (line 9) | class TestKuzu: method mock_config (line 34) | def mock_config(self): method mock_embedding_model (line 54) | def mock_embedding_model(self): method mock_llm (line 66) | def mock_llm(self): method test_kuzu_memory_initialization (line 81) | def test_kuzu_memory_initialization( method test_kuzu_memory_initialization_invalid_embedding_dims (line 104) | def test_kuzu_memory_initialization_invalid_embedding_dims( method test_kuzu (line 118) | def test_kuzu(self, mock_llm_factory, mock_embedder_factory, mock_conf... function _make_kuzu_instance (line 195) | def _make_kuzu_instance(): class TestRetrieveNodesFromData (line 206) | class TestRetrieveNodesFromData: method test_missing_entities_key_returns_empty (line 209) | def test_missing_entities_key_returns_empty(self): method test_normal_entities_extracted (line 219) | def test_normal_entities_extracted(self): method test_none_tool_calls_returns_empty (line 230) | def test_none_tool_calls_returns_empty(self): function get_node_count (line 237) | def get_node_count(kuzu_memory): function get_edge_count (line 246) | def get_edge_count(kuzu_memory): FILE: tests/memory/test_main.py function _setup_mocks (line 10) | def _setup_mocks(mocker): class TestAddToVectorStoreErrors (line 30) | class TestAddToVectorStoreErrors: method mock_memory (line 32) | def mock_memory(self, mocker): method test_empty_llm_response_fact_extraction (line 44) | def test_empty_llm_response_fact_extraction(self, mocker, mock_memory,... method test_empty_llm_response_memory_actions (line 64) | def test_empty_llm_response_memory_actions(self, mock_memory, caplog): class TestAsyncAddToVectorStoreErrors (line 83) | class TestAsyncAddToVectorStoreErrors: method mock_async_memory (line 85) | def mock_async_memory(self, mocker): method test_async_empty_llm_response_fact_extraction (line 98) | async def test_async_empty_llm_response_fact_extraction(self, mock_asy... method test_async_empty_llm_response_memory_actions (line 116) | async def test_async_empty_llm_response_memory_actions(self, mock_asyn... function _build_memory_instance (line 133) | def _build_memory_instance(mocker, memory_cls): function _assert_utc_timestamp (line 147) | def _assert_utc_timestamp(timestamp: str): function test_create_memory_uses_utc_timestamps (line 153) | def test_create_memory_uses_utc_timestamps(mocker): function test_update_memory_uses_utc_timestamps (line 160) | def test_update_memory_uses_utc_timestamps(mocker): function test_async_create_memory_uses_utc_timestamps (line 172) | async def test_async_create_memory_uses_utc_timestamps(mocker): function test_async_update_memory_uses_utc_timestamps (line 180) | async def test_async_update_memory_uses_utc_timestamps(mocker): function test_normalize_iso_timestamp_to_utc_preserves_naive_values (line 191) | def test_normalize_iso_timestamp_to_utc_preserves_naive_values(): function test_normalize_iso_timestamp_to_utc_converts_pacific (line 195) | def test_normalize_iso_timestamp_to_utc_converts_pacific(): function test_normalize_iso_timestamp_to_utc_handles_none (line 200) | def test_normalize_iso_timestamp_to_utc_handles_none(): function test_normalize_iso_timestamp_to_utc_handles_empty (line 204) | def test_normalize_iso_timestamp_to_utc_handles_empty(): FILE: tests/memory/test_memgraph_memory.py function _make_instance (line 17) | def _make_instance(): class TestRetrieveNodesFromData (line 28) | class TestRetrieveNodesFromData: method test_normal_entities_extracted (line 31) | def test_normal_entities_extracted(self): method test_malformed_entity_missing_entity_type_is_skipped (line 42) | def test_malformed_entity_missing_entity_type_is_skipped(self): method test_missing_entities_key_returns_empty (line 58) | def test_missing_entities_key_returns_empty(self): method test_none_tool_calls_returns_empty (line 68) | def test_none_tool_calls_returns_empty(self): class TestEstablishNodesRelationsFromData (line 75) | class TestEstablishNodesRelationsFromData: method test_none_response_does_not_crash (line 78) | def test_none_response_does_not_crash(self): method test_empty_tool_calls_returns_empty (line 88) | def test_empty_tool_calls_returns_empty(self): method test_valid_entities_returned (line 96) | def test_valid_entities_returned(self): FILE: tests/memory/test_neo4j_cypher_syntax.py class TestNeo4jCypherSyntaxFix (line 5) | class TestNeo4jCypherSyntaxFix: method test_get_all_generates_valid_cypher_with_agent_id (line 8) | def test_get_all_generates_valid_cypher_with_agent_id(self): method test_cypher_syntax_validation (line 22) | def test_cypher_syntax_validation(self): method test_no_undefined_variables_in_cypher (line 47) | def test_no_undefined_variables_in_cypher(self): method test_agent_id_integration_syntax (line 76) | def test_agent_id_integration_syntax(self): method test_run_id_integration_syntax (line 96) | def test_run_id_integration_syntax(self): method test_agent_id_filter_patterns (line 116) | def test_agent_id_filter_patterns(self): method test_run_id_filter_patterns (line 135) | def test_run_id_filter_patterns(self): method test_agent_id_cypher_generation (line 154) | def test_agent_id_cypher_generation(self): method test_run_id_cypher_generation (line 177) | def test_run_id_cypher_generation(self): method test_agent_id_implementation_pattern (line 200) | def test_agent_id_implementation_pattern(self): method test_run_id_implementation_pattern (line 218) | def test_run_id_implementation_pattern(self): method test_user_identity_integration (line 236) | def test_user_identity_integration(self): method test_search_methods_integration (line 253) | def test_search_methods_integration(self): method test_add_entities_integration (line 271) | def test_add_entities_integration(self): FILE: tests/memory/test_neptune_analytics_memory.py class TestNeptuneMemory (line 8) | class TestNeptuneMemory(unittest.TestCase): method setUp (line 11) | def setUp(self): method tearDown (line 52) | def tearDown(self): method test_initialization (line 58) | def test_initialization(self): method test_init (line 67) | def test_init(self): method test_add_method (line 85) | def test_add_method(self): method test_search_method (line 115) | def test_search_method(self): method test_get_all_method (line 149) | def test_get_all_method(self): method test_delete_all_method (line 177) | def test_delete_all_method(self): method test_search_source_node (line 191) | def test_search_source_node(self): method test_search_destination_node (line 215) | def test_search_destination_node(self): method test_search_graph_db (line 239) | def test_search_graph_db(self): method test_add_entities (line 270) | def test_add_entities(self): method test_delete_entities (line 310) | def test_delete_entities(self): FILE: tests/memory/test_neptune_memory.py class TestNeptuneMemory (line 11) | class TestNeptuneMemory(unittest.TestCase): method setUp (line 14) | def setUp(self): method tearDown (line 61) | def tearDown(self): method test_initialization (line 68) | def test_initialization(self): method test_collection_name_variants (line 79) | def test_collection_name_variants(self): method test_init (line 123) | def test_init(self): method test_add_method (line 141) | def test_add_method(self): method test_search_method (line 171) | def test_search_method(self): method test_get_all_method (line 205) | def test_get_all_method(self): method test_delete_all_method (line 233) | def test_delete_all_method(self): method test_search_source_node (line 247) | def test_search_source_node(self): method test_search_destination_node (line 271) | def test_search_destination_node(self): method test_add_new_entities_payloads_use_utc_timestamps (line 295) | def test_add_new_entities_payloads_use_utc_timestamps(self): method test_search_graph_db (line 314) | def test_search_graph_db(self): method test_add_entities (line 345) | def test_add_entities(self): method test_delete_entities (line 385) | def test_delete_entities(self): FILE: tests/memory/test_safe_deepcopy_config.py class TestRuntimeFieldsPreserved (line 21) | class TestRuntimeFieldsPreserved: method test_runtime_fields_are_not_sensitive (line 30) | def test_runtime_fields_are_not_sensitive(self, field): method test_runtime_fields_case_insensitive (line 33) | def test_runtime_fields_case_insensitive(self): class TestExactDenyList (line 38) | class TestExactDenyList: method test_exact_sensitive_fields (line 61) | def test_exact_sensitive_fields(self, field): method test_exact_fields_case_insensitive (line 64) | def test_exact_fields_case_insensitive(self): class TestSuffixDenyList (line 69) | class TestSuffixDenyList: method test_suffix_matches (line 83) | def test_suffix_matches(self, field): class TestNonSensitiveFields (line 87) | class TestNonSensitiveFields: method test_common_config_fields (line 105) | def test_common_config_fields(self, field): class TestOverMatchingPrevention (line 109) | class TestOverMatchingPrevention: method test_no_over_matching (line 128) | def test_no_over_matching(self, field): class TestEdgeCases (line 132) | class TestEdgeCases: method test_empty_string (line 133) | def test_empty_string(self): method test_whitespace_stripped (line 136) | def test_whitespace_stripped(self): class TestRealWorldFieldCoverage (line 141) | class TestRealWorldFieldCoverage: method test_field_sensitivity (line 181) | def test_field_sensitivity(self, field, expected): class MockNonCopyableAuth (line 190) | class MockNonCopyableAuth: method __init__ (line 193) | def __init__(self): method __deepcopy__ (line 197) | def __deepcopy__(self, memo): class MockConnectionClass (line 201) | class MockConnectionClass: method __init__ (line 203) | def __init__(self): method __deepcopy__ (line 206) | def __deepcopy__(self, memo): class PlainConfig (line 210) | class PlainConfig: method __init__ (line 213) | def __init__(self, **kwargs): class TestSafeDeepcopyClonesNormally (line 218) | class TestSafeDeepcopyClonesNormally: method test_deepcopy_success_returns_clone (line 221) | def test_deepcopy_success_returns_clone(self): class TestSafeDeepcopyCopiesWithAuth (line 232) | class TestSafeDeepcopyCopiesWithAuth: method test_preserves_http_auth_and_connection_class (line 235) | def test_preserves_http_auth_and_connection_class(self): method test_preserves_auth_field (line 261) | def test_preserves_auth_field(self): class TestSafeDeepcopyWithPydantic (line 275) | class TestSafeDeepcopyWithPydantic: method test_pydantic_like_config (line 278) | def test_pydantic_like_config(self): class TestSafeDeepcopyWithRealPydanticModel (line 303) | class TestSafeDeepcopyWithRealPydanticModel: method test_real_pydantic_model_preserves_auth_objects (line 310) | def test_real_pydantic_model_preserves_auth_objects(self): class TestSafeDeepcopyWithDataclass (line 346) | class TestSafeDeepcopyWithDataclass: method test_dataclass_config (line 349) | def test_dataclass_config(self): FILE: tests/memory/test_storage.py class TestSQLiteManager (line 12) | class TestSQLiteManager: method temp_db_path (line 16) | def temp_db_path(self): method sqlite_manager (line 25) | def sqlite_manager(self, temp_db_path): method memory_manager (line 33) | def memory_manager(self): method sample_data (line 41) | def sample_data(self): method test_initialization (line 58) | def test_initialization(self, db_type, path, request): method test_table_schema_creation (line 70) | def test_table_schema_creation(self, sqlite_manager): method test_add_history_basic (line 92) | def test_add_history_basic(self, sqlite_manager, sample_data): method test_add_history_optional_params (line 119) | def test_add_history_optional_params(self, sqlite_manager, sample_data... method test_add_history_generates_unique_ids (line 141) | def test_add_history_generates_unique_ids(self, sqlite_manager, sample... method test_get_history_empty (line 160) | def test_get_history_empty(self, sqlite_manager): method test_get_history_single_record (line 165) | def test_get_history_single_record(self, sqlite_manager, sample_data): method test_get_history_chronological_ordering (line 190) | def test_get_history_chronological_ordering(self, sqlite_manager, samp... method test_migration_preserves_data (line 212) | def test_migration_preserves_data(self, temp_db_path, sample_data): method test_large_batch_operations (line 233) | def test_large_batch_operations(self, sqlite_manager): method test_explicit_old_schema_migration (line 253) | def test_explicit_old_schema_migration(self, temp_db_path): FILE: tests/rerankers/conftest.py function mock_llm (line 7) | def mock_llm(): FILE: tests/rerankers/test_llm_reranker_config.py class TestLLMRerankerConfig (line 6) | class TestLLMRerankerConfig: method test_default_config (line 7) | def test_default_config(self): method test_nested_llm_field_accepted (line 17) | def test_nested_llm_field_accepted(self): class TestLLMRerankerInit (line 25) | class TestLLMRerankerInit: method test_init_with_dict_config (line 26) | def test_init_with_dict_config(self, mock_llm): method test_init_with_llm_reranker_config (line 37) | def test_init_with_llm_reranker_config(self, mock_llm): method test_init_converts_base_reranker_config (line 48) | def test_init_converts_base_reranker_config(self, mock_llm): method test_init_without_api_key (line 57) | def test_init_without_api_key(self, mock_llm): FILE: tests/rerankers/test_llm_reranker_nested_config.py class TestNestedLLMConfig (line 4) | class TestNestedLLMConfig: method test_nested_llm_overrides_provider (line 5) | def test_nested_llm_overrides_provider(self, mock_llm): method test_nested_llm_passes_provider_specific_config (line 19) | def test_nested_llm_passes_provider_specific_config(self, mock_llm): method test_nested_llm_inherits_top_level_defaults (line 37) | def test_nested_llm_inherits_top_level_defaults(self, mock_llm): method test_nested_llm_config_values_take_precedence (line 55) | def test_nested_llm_config_values_take_precedence(self, mock_llm): method test_nested_llm_falls_back_to_top_level_provider (line 79) | def test_nested_llm_falls_back_to_top_level_provider(self, mock_llm): method test_nested_llm_with_empty_config (line 94) | def test_nested_llm_with_empty_config(self, mock_llm): method test_nested_llm_with_none_config (line 110) | def test_nested_llm_with_none_config(self, mock_llm): method test_nested_llm_inherits_top_level_api_key (line 124) | def test_nested_llm_inherits_top_level_api_key(self, mock_llm): method test_nested_llm_config_api_key_not_overridden (line 140) | def test_nested_llm_config_api_key_not_overridden(self, mock_llm): FILE: tests/rerankers/test_llm_reranker_rerank.py class TestExtractScore (line 6) | class TestExtractScore: method reranker (line 8) | def reranker(self, mock_llm): method test_valid_scores (line 21) | def test_valid_scores(self, reranker, text, expected): method test_no_score_returns_fallback (line 24) | def test_no_score_returns_fallback(self, reranker): method test_clamps_to_1 (line 27) | def test_clamps_to_1(self, reranker): class TestRerank (line 31) | class TestRerank: method test_empty_documents (line 32) | def test_empty_documents(self, mock_llm): method test_documents_sorted_by_score_descending (line 37) | def test_documents_sorted_by_score_descending(self, mock_llm): method test_top_k_limits_results (line 55) | def test_top_k_limits_results(self, mock_llm): method test_config_top_k_used_when_arg_not_provided (line 65) | def test_config_top_k_used_when_arg_not_provided(self, mock_llm): method test_text_field_extraction (line 75) | def test_text_field_extraction(self, mock_llm): method test_content_field_extraction (line 85) | def test_content_field_extraction(self, mock_llm): method test_fallback_score_on_llm_error (line 95) | def test_fallback_score_on_llm_error(self, mock_llm): method test_custom_scoring_prompt (line 105) | def test_custom_scoring_prompt(self, mock_llm): method test_original_doc_not_mutated (line 116) | def test_original_doc_not_mutated(self, mock_llm): FILE: tests/test_main.py function mock_openai (line 11) | def mock_openai(): function memory_instance (line 19) | def memory_instance(): function memory_custom_instance (line 43) | def memory_custom_instance(): function test_add (line 71) | def test_add(memory_instance, version, enable_graph): function test_get (line 98) | def test_get(memory_instance): function test_search (line 124) | def test_search(memory_instance, version, enable_graph): function test_update (line 169) | def test_update(memory_instance): function test_delete (line 184) | def test_delete(memory_instance): function test_delete_all (line 194) | def test_delete_all(memory_instance, version, enable_graph): function test_get_all (line 232) | def test_get_all(memory_instance, version, enable_graph, expected_result): function test_custom_prompts (line 266) | def test_custom_prompts(memory_custom_instance): function test_no_telemetry_vector_store_when_disabled (line 304) | def test_no_telemetry_vector_store_when_disabled(): function test_telemetry_vector_store_created_when_enabled (line 324) | def test_telemetry_vector_store_created_when_enabled(): FILE: tests/test_memory.py class MockVectorMemory (line 11) | class MockVectorMemory: method __init__ (line 14) | def __init__(self, memory_id: str, payload: dict, score: float = 0.8): function memory_client (line 21) | def memory_client(): function test_create_memory (line 33) | def test_create_memory(memory_client): function test_get_memory (line 39) | def test_get_memory(memory_client): function test_update_memory (line 46) | def test_update_memory(memory_client): function test_delete_memory (line 54) | def test_delete_memory(memory_client): function test_history (line 61) | def test_history(memory_client): function test_list_memories (line 70) | def test_list_memories(memory_client): function test_collection_name_preserved_after_reset (line 84) | def test_collection_name_preserved_after_reset(mock_sqlite, mock_llm_fac... function test_search_handles_incomplete_payloads (line 115) | def test_search_handles_incomplete_payloads(mock_sqlite, mock_llm_factor... function test_get_all_handles_nested_list_from_chroma (line 150) | def test_get_all_handles_nested_list_from_chroma(mock_sqlite, mock_llm_f... function test_get_all_handles_tuple_from_qdrant (line 188) | def test_get_all_handles_tuple_from_qdrant(mock_sqlite, mock_llm_factory... function test_get_all_handles_flat_list_from_postgres (line 222) | def test_get_all_handles_flat_list_from_postgres(mock_sqlite, mock_llm_f... function test_add_infer_with_malformed_llm_facts (line 256) | def test_add_infer_with_malformed_llm_facts(mock_sqlite, mock_llm_factor... function test_normalize_facts_plain_strings (line 300) | def test_normalize_facts_plain_strings(): function test_normalize_facts_dict_with_fact_key (line 304) | def test_normalize_facts_dict_with_fact_key(): function test_normalize_facts_dict_with_text_key (line 308) | def test_normalize_facts_dict_with_text_key(): function test_normalize_facts_mixed (line 312) | def test_normalize_facts_mixed(): function test_normalize_facts_filters_empty_strings (line 321) | def test_normalize_facts_filters_empty_strings(): FILE: tests/test_memory_integration.py function test_memory_configuration_without_env_vars (line 6) | def test_memory_configuration_without_env_vars(): function test_azure_config_structure (line 80) | def test_azure_config_structure(): function test_memory_messages_format (line 140) | def test_memory_messages_format(): function test_safe_update_prompt_constant (line 168) | def test_safe_update_prompt_constant(): FILE: tests/test_proxy.py function mock_memory_client (line 10) | def mock_memory_client(): function mock_openai_embedding_client (line 17) | def mock_openai_embedding_client(): function mock_openai_llm_client (line 25) | def mock_openai_llm_client(): function mock_litellm (line 33) | def mock_litellm(): function test_mem0_initialization_with_api_key (line 38) | def test_mem0_initialization_with_api_key(mock_openai_embedding_client, ... function test_mem0_initialization_with_config (line 44) | def test_mem0_initialization_with_config(): function test_mem0_initialization_without_params (line 52) | def test_mem0_initialization_without_params(mock_openai_embedding_client... function test_chat_initialization (line 58) | def test_chat_initialization(mock_memory_client): function test_completions_create (line 63) | def test_completions_create(mock_memory_client, mock_litellm): function test_completions_create_with_system_message (line 85) | def test_completions_create_with_system_message(mock_memory_client, mock... FILE: tests/test_telemetry.py class TestTelemetryDisabled (line 9) | class TestTelemetryDisabled: method test_posthog_not_created_when_disabled (line 12) | def test_posthog_not_created_when_disabled(self): method test_capture_event_noop_when_disabled (line 21) | def test_capture_event_noop_when_disabled(self): method test_capture_client_event_noop_when_disabled (line 28) | def test_capture_client_event_noop_when_disabled(self): method test_instance_capture_event_noop_when_posthog_is_none (line 37) | def test_instance_capture_event_noop_when_posthog_is_none(self): method test_close_noop_when_posthog_is_none (line 43) | def test_close_noop_when_posthog_is_none(self): method test_no_threads_spawned_when_disabled (line 49) | def test_no_threads_spawned_when_disabled(self): class TestTelemetryEnabled (line 58) | class TestTelemetryEnabled: method test_posthog_created_when_enabled (line 61) | def test_posthog_created_when_enabled(self): method test_capture_event_sends_when_enabled (line 71) | def test_capture_event_sends_when_enabled(self): method test_capture_client_event_sends_when_enabled (line 83) | def test_capture_client_event_sends_when_enabled(self): class TestTelemetryEnvVar (line 94) | class TestTelemetryEnvVar: method test_env_var_parsing (line 112) | def test_env_var_parsing(self, value, expected): FILE: tests/vector_stores/test_azure_ai_search.py function mock_clients (line 15) | def mock_clients(): function azure_ai_search_instance (line 58) | def azure_ai_search_instance(mock_clients): function test_config_validation_valid (line 76) | def test_config_validation_valid(): function test_config_validation_invalid_compression_type (line 101) | def test_config_validation_invalid_compression_type(): function test_config_validation_deprecated_use_compression (line 113) | def test_config_validation_deprecated_use_compression(): function test_config_validation_extra_fields (line 127) | def test_config_validation_extra_fields(): function test_initialization (line 143) | def test_initialization(mock_clients): function test_initialization_with_compression_types (line 168) | def test_initialization_with_compression_types(mock_clients): function test_initialization_with_float_precision (line 226) | def test_initialization_with_float_precision(mock_clients): function test_create_col (line 270) | def test_create_col(azure_ai_search_instance): function test_create_col_scalar_compression (line 315) | def test_create_col_scalar_compression(mock_clients): function test_create_col_no_compression (line 340) | def test_create_col_no_compression(mock_clients): function test_insert_single (line 366) | def test_insert_single(azure_ai_search_instance): function test_insert_multiple (line 393) | def test_insert_multiple(azure_ai_search_instance): function test_insert_with_error (line 432) | def test_insert_with_error(azure_ai_search_instance): function test_insert_with_missing_payload_fields (line 468) | def test_insert_with_missing_payload_fields(azure_ai_search_instance): function test_insert_with_http_error (line 496) | def test_insert_with_http_error(azure_ai_search_instance): function test_search_basic (line 517) | def test_search_basic(azure_ai_search_instance): function test_init_with_valid_api_key (line 557) | def test_init_with_valid_api_key(mock_clients): function test_init_with_default_api_key_triggers_default_credential (line 592) | def test_init_with_default_api_key_triggers_default_credential(monkeypat... function test_init_sets_compression_type_to_none_if_unspecified (line 624) | def test_init_sets_compression_type_to_none_if_unspecified(mock_clients): function test_init_does_not_create_col_if_collection_exists (line 637) | def test_init_does_not_create_col_if_collection_exists(mock_clients): function test_init_calls_create_col_if_collection_missing (line 653) | def test_init_calls_create_col_if_collection_missing(mock_clients): FILE: tests/vector_stores/test_azure_mysql.py function mock_connection_pool (line 9) | def mock_connection_pool(): function azure_mysql_instance (line 36) | def azure_mysql_instance(mock_connection_pool): function test_azure_mysql_init (line 56) | def test_azure_mysql_init(mock_connection_pool): function test_create_col (line 79) | def test_create_col(azure_mysql_instance): function test_insert (line 89) | def test_insert(azure_mysql_instance): function test_search (line 102) | def test_search(azure_mysql_instance): function test_delete (line 127) | def test_delete(azure_mysql_instance): function test_update (line 136) | def test_update(azure_mysql_instance): function test_get (line 148) | def test_get(azure_mysql_instance): function test_list_cols (line 166) | def test_list_cols(azure_mysql_instance): function test_delete_col (line 182) | def test_delete_col(azure_mysql_instance): function test_col_info (line 191) | def test_col_info(azure_mysql_instance): function test_list (line 208) | def test_list(azure_mysql_instance): function test_reset (line 227) | def test_reset(azure_mysql_instance): function test_azure_credential_authentication (line 238) | def test_azure_credential_authentication(): function test_output_data_model (line 259) | def test_output_data_model(): FILE: tests/vector_stores/test_baidu.py function mock_mochow_client (line 17) | def mock_mochow_client(): function mock_configuration (line 23) | def mock_configuration(): function mock_bce_credentials (line 29) | def mock_bce_credentials(): function mock_table (line 35) | def mock_table(): function mochow_instance (line 52) | def mochow_instance(mock_mochow_client, mock_configuration, mock_bce_cre... function test_insert (line 81) | def test_insert(mochow_instance, mock_mochow_client): function test_search (line 105) | def test_search(mochow_instance, mock_mochow_client): function test_search_with_filters (line 140) | def test_search_with_filters(mochow_instance, mock_mochow_client): function test_delete (line 155) | def test_delete(mochow_instance, mock_mochow_client): function test_update (line 162) | def test_update(mochow_instance, mock_mochow_client): function test_get (line 178) | def test_get(mochow_instance, mock_mochow_client): function test_list (line 193) | def test_list(mochow_instance, mock_mochow_client): function test_list_cols (line 208) | def test_list_cols(mochow_instance, mock_mochow_client): function test_delete_col_not_exists (line 221) | def test_delete_col_not_exists(mochow_instance, mock_mochow_client): function test_col_info (line 231) | def test_col_info(mochow_instance, mock_mochow_client): FILE: tests/vector_stores/test_cassandra.py function mock_session (line 9) | def mock_session(): function mock_cluster (line 19) | def mock_cluster(mock_session): function cassandra_instance (line 28) | def cassandra_instance(mock_cluster, mock_session): function test_cassandra_init (line 46) | def test_cassandra_init(mock_cluster, mock_session): function test_create_col (line 69) | def test_create_col(cassandra_instance): function test_insert (line 77) | def test_insert(cassandra_instance): function test_search (line 93) | def test_search(cassandra_instance): function test_delete (line 116) | def test_delete(cassandra_instance): function test_update (line 127) | def test_update(cassandra_instance): function test_get (line 141) | def test_get(cassandra_instance): function test_list_cols (line 163) | def test_list_cols(cassandra_instance): function test_delete_col (line 181) | def test_delete_col(cassandra_instance): function test_col_info (line 188) | def test_col_info(cassandra_instance): function test_list (line 206) | def test_list(cassandra_instance): function test_reset (line 222) | def test_reset(cassandra_instance): function test_astra_db_connection (line 229) | def test_astra_db_connection(mock_cluster, mock_session): function test_search_with_filters (line 248) | def test_search_with_filters(cassandra_instance): function test_output_data_model (line 277) | def test_output_data_model(): function test_insert_without_ids (line 290) | def test_insert_without_ids(cassandra_instance): function test_insert_without_payloads (line 304) | def test_insert_without_payloads(cassandra_instance): FILE: tests/vector_stores/test_chroma.py function mock_chromadb_client (line 9) | def mock_chromadb_client(): function chromadb_instance (line 15) | def chromadb_instance(mock_chromadb_client): function test_insert_vectors (line 22) | def test_insert_vectors(chromadb_instance, mock_chromadb_client): function test_search_vectors (line 32) | def test_search_vectors(chromadb_instance, mock_chromadb_client): function test_search_vectors_with_filters (line 51) | def test_search_vectors_with_filters(chromadb_instance, mock_chromadb_cl... function test_search_vectors_with_single_filter (line 77) | def test_search_vectors_with_single_filter(chromadb_instance, mock_chrom... function test_search_vectors_with_no_filters (line 100) | def test_search_vectors_with_no_filters(chromadb_instance, mock_chromadb... function test_delete_vector (line 119) | def test_delete_vector(chromadb_instance): function test_update_vector (line 127) | def test_update_vector(chromadb_instance): function test_get_vector (line 139) | def test_get_vector(chromadb_instance): function test_list_vectors (line 156) | def test_list_vectors(chromadb_instance): function test_list_vectors_with_filters (line 173) | def test_list_vectors_with_filters(chromadb_instance): function test_list_vectors_with_single_filter (line 195) | def test_list_vectors_with_single_filter(chromadb_instance): function test_generate_where_clause_multiple_filters (line 215) | def test_generate_where_clause_multiple_filters(): function test_generate_where_clause_single_filter (line 225) | def test_generate_where_clause_single_filter(): function test_generate_where_clause_no_filters (line 235) | def test_generate_where_clause_no_filters(): function test_generate_where_clause_non_string_values (line 244) | def test_generate_where_clause_non_string_values(): FILE: tests/vector_stores/test_databricks.py function _make_status (line 11) | def _make_status(state="SUCCEEDED", error=None): function _make_exec_response (line 15) | def _make_exec_response(state="SUCCEEDED", error=None): function mock_workspace_client (line 20) | def mock_workspace_client(): function db_instance_delta (line 54) | def db_instance_delta(mock_workspace_client): function db_instance_direct (line 70) | def db_instance_direct(mock_workspace_client): function test_initialization_delta_sync (line 91) | def test_initialization_delta_sync(db_instance_delta, mock_workspace_cli... function test_initialization_direct_access (line 104) | def test_initialization_direct_access(db_instance_direct, mock_workspace... function test_create_col_invalid_type (line 113) | def test_create_col_invalid_type(mock_workspace_client): function test_insert_generates_sql (line 134) | def test_insert_generates_sql(db_instance_direct, mock_workspace_client): function test_search_delta_sync_text (line 160) | def test_search_delta_sync_text(db_instance_delta, mock_workspace_client): function test_search_direct_access_vector (line 185) | def test_search_direct_access_vector(db_instance_direct, mock_workspace_... function test_search_missing_params_raises (line 208) | def test_search_missing_params_raises(db_instance_delta): function test_delete_vector (line 216) | def test_delete_vector(db_instance_delta, mock_workspace_client): function test_update_vector (line 226) | def test_update_vector(db_instance_direct, mock_workspace_client): function test_get_vector (line 243) | def test_get_vector(db_instance_delta, mock_workspace_client): function test_list_cols (line 283) | def test_list_cols(db_instance_delta, mock_workspace_client): function test_col_info (line 292) | def test_col_info(db_instance_delta): function test_list_memories (line 298) | def test_list_memories(db_instance_delta, mock_workspace_client): function test_reset (line 338) | def test_reset(db_instance_delta, mock_workspace_client): FILE: tests/vector_stores/test_elasticsearch.py class TestElasticsearchDB (line 16) | class TestElasticsearchDB(unittest.TestCase): method setUpClass (line 18) | def setUpClass(cls): method setUp (line 35) | def setUp(self): method tearDownClass (line 66) | def tearDownClass(cls): method tearDown (line 74) | def tearDown(self): method test_create_index (line 78) | def test_create_index(self): method test_auto_create_index (line 110) | def test_auto_create_index(self): method test_insert (line 149) | def test_insert(self): method test_search (line 179) | def test_search(self): method test_custom_search_query (line 215) | def test_custom_search_query(self): method test_get (line 234) | def test_get(self): method test_get_not_found (line 254) | def test_get_not_found(self): method test_list (line 262) | def test_list(self): method test_delete (line 289) | def test_delete(self): method test_list_cols (line 296) | def test_list_cols(self): method test_delete_col (line 307) | def test_delete_col(self): method test_es_config (line 314) | def test_es_config(self): method test_es_valid_headers (line 328) | def test_es_valid_headers(self): method test_es_invalid_headers (line 341) | def test_es_invalid_headers(self): FILE: tests/vector_stores/test_faiss.py function mock_faiss_index (line 13) | def mock_faiss_index(): function faiss_instance (line 21) | def faiss_instance(mock_faiss_index): function test_create_col (line 38) | def test_create_col(faiss_instance, mock_faiss_index): function test_insert (line 52) | def test_insert(faiss_instance, mock_faiss_index): function test_search (line 79) | def test_search(faiss_instance, mock_faiss_index): function test_search_with_filters (line 122) | def test_search_with_filters(faiss_instance, mock_faiss_index): function test_delete (line 168) | def test_delete(faiss_instance): function test_update (line 183) | def test_update(faiss_instance, mock_faiss_index): function test_get (line 205) | def test_get(faiss_instance): function test_list (line 220) | def test_list(faiss_instance): function test_col_info (line 244) | def test_col_info(faiss_instance, mock_faiss_index): function test_delete_col (line 259) | def test_delete_col(faiss_instance): function test_normalize_L2 (line 275) | def test_normalize_L2(faiss_instance, mock_faiss_index): FILE: tests/vector_stores/test_langchain_vector_store.py function mock_langchain_client (line 10) | def mock_langchain_client(): function langchain_instance (line 16) | def langchain_instance(mock_langchain_client): function test_insert_vectors (line 21) | def test_insert_vectors(langchain_instance): function test_search_vectors (line 44) | def test_search_vectors(langchain_instance): function test_search_vectors_with_agent_id_run_id_filters (line 67) | def test_search_vectors_with_agent_id_run_id_filters(langchain_instance): function test_search_vectors_with_single_filter (line 91) | def test_search_vectors_with_single_filter(langchain_instance): function test_search_vectors_with_no_filters (line 110) | def test_search_vectors_with_no_filters(langchain_instance): function test_get_vector (line 127) | def test_get_vector(langchain_instance): function test_list_with_filters (line 146) | def test_list_with_filters(langchain_instance): function test_list_with_single_filter (line 171) | def test_list_with_single_filter(langchain_instance): function test_list_with_no_filters (line 194) | def test_list_with_no_filters(langchain_instance): function test_list_with_exception (line 216) | def test_list_with_exception(langchain_instance): FILE: tests/vector_stores/test_milvus.py class TestMilvusDB (line 17) | class TestMilvusDB: method mock_milvus_client (line 21) | def mock_milvus_client(self): method milvus_db (line 30) | def milvus_db(self, mock_milvus_client): method test_initialization_with_int_dims (line 41) | def test_initialization_with_int_dims(self, mock_milvus_client): method test_create_col_with_int_vector_size (line 55) | def test_create_col_with_int_vector_size(self, milvus_db, mock_milvus_... method test_batch_insert (line 64) | def test_batch_insert(self, milvus_db, mock_milvus_client): method test_create_filter_string_value (line 84) | def test_create_filter_string_value(self, milvus_db): method test_create_filter_numeric_value (line 91) | def test_create_filter_numeric_value(self, milvus_db): method test_create_filter_multiple_conditions (line 98) | def test_create_filter_multiple_conditions(self, milvus_db): method test_search_with_filters (line 108) | def test_search_with_filters(self, milvus_db, mock_milvus_client): method test_search_different_user_ids (line 134) | def test_search_different_user_ids(self, milvus_db, mock_milvus_client): method test_update_uses_upsert (line 155) | def test_update_uses_upsert(self, milvus_db, mock_milvus_client): method test_delete (line 172) | def test_delete(self, milvus_db, mock_milvus_client): method test_get (line 182) | def test_get(self, milvus_db, mock_milvus_client): method test_list_with_filters (line 195) | def test_list_with_filters(self, milvus_db, mock_milvus_client): method test_parse_output (line 212) | def test_parse_output(self, milvus_db): method test_collection_already_exists (line 236) | def test_collection_already_exists(self, mock_milvus_client): FILE: tests/vector_stores/test_mongodb.py function mongo_vector_fixture (line 10) | def mongo_vector_fixture(mock_mongo_client): function test_initalize_create_col (line 34) | def test_initalize_create_col(mongo_vector_fixture): function test_insert (line 67) | def test_insert(mongo_vector_fixture): function test_search (line 81) | def test_search(mongo_vector_fixture): function test_search_with_filters (line 113) | def test_search_with_filters(mongo_vector_fixture): function test_search_with_single_filter (line 147) | def test_search_with_single_filter(mongo_vector_fixture): function test_search_with_no_filters (line 172) | def test_search_with_no_filters(mongo_vector_fixture): function test_delete (line 193) | def test_delete(mongo_vector_fixture): function test_update (line 206) | def test_update(mongo_vector_fixture): function test_get (line 221) | def test_get(mongo_vector_fixture): function test_list_cols (line 233) | def test_list_cols(mongo_vector_fixture): function test_delete_col (line 246) | def test_delete_col(mongo_vector_fixture): function test_col_info (line 254) | def test_col_info(mongo_vector_fixture): function test_list (line 266) | def test_list(mongo_vector_fixture): function test_list_with_filters (line 284) | def test_list_with_filters(mongo_vector_fixture): function test_list_with_single_filter (line 313) | def test_list_with_single_filter(mongo_vector_fixture): function test_list_with_no_filters (line 338) | def test_list_with_no_filters(mongo_vector_fixture): FILE: tests/vector_stores/test_neptune_analytics.py class TestNeptuneAnalyticsOperations (line 38) | class TestNeptuneAnalyticsOperations: method na_instance (line 42) | def na_instance(self): method test_insert_and_list (line 51) | def test_insert_and_list(self, na_instance): method test_get (line 65) | def test_get(self, na_instance): method test_update (line 82) | def test_update(self, na_instance): method test_delete (line 100) | def test_delete(self, na_instance): method test_search (line 117) | def test_search(self, na_instance): method test_reset (line 131) | def test_reset(self, na_instance): method test_delete_col (line 148) | def test_delete_col(self, na_instance): method test_list_cols (line 165) | def test_list_cols(self, na_instance): method test_invalid_endpoint_format (line 178) | def test_invalid_endpoint_format(self): FILE: tests/vector_stores/test_opensearch.py class MockFieldInfo (line 19) | class MockFieldInfo: method __init__ (line 21) | def __init__(self, default=None): class MockOpenSearchConfig (line 25) | class MockOpenSearchConfig: method __init__ (line 40) | def __init__(self, collection_name="test_collection", include_auth=Tru... class MockAWSAuth (line 65) | class MockAWSAuth: method __init__ (line 67) | def __init__(self): method __deepcopy__ (line 71) | def __deepcopy__(self, memo): class MockConnectionClass (line 75) | class MockConnectionClass: method __init__ (line 77) | def __init__(self): method __deepcopy__ (line 80) | def __deepcopy__(self, memo): class TestOpenSearchDB (line 84) | class TestOpenSearchDB(unittest.TestCase): method setUpClass (line 86) | def setUpClass(cls): method setUp (line 97) | def setUp(self): method tearDownClass (line 128) | def tearDownClass(cls): method tearDown (line 135) | def tearDown(self): method test_create_index (line 138) | def test_create_index(self): method test_insert (line 152) | def test_insert(self): method test_get (line 186) | def test_get(self): method test_update (line 202) | def test_update(self): method test_list_cols (line 214) | def test_list_cols(self): method test_search (line 220) | def test_search(self): method test_delete (line 248) | def test_delete(self): method test_delete_col (line 254) | def test_delete_col(self): method test_init_with_http_auth (line 258) | def test_init_with_http_auth(self): function test_safe_deepcopy_config_handles_opensearch_auth (line 289) | def test_safe_deepcopy_config_handles_opensearch_auth(mock_sqlite, mock_... function test_safe_deepcopy_config_normal_configs (line 322) | def test_safe_deepcopy_config_normal_configs(mock_sqlite, mock_llm_facto... function test_memory_initialization_opensearch_aws_auth (line 348) | def test_memory_initialization_opensearch_aws_auth(mock_sqlite, mock_llm... FILE: tests/vector_stores/test_pgvector.py class TestPGVector (line 10) | class TestPGVector(unittest.TestCase): method setUp (line 11) | def setUp(self): method test_init_with_individual_params_psycopg3 (line 37) | def test_init_with_individual_params_psycopg3(self, mock_psycopg_pool): method test_init_with_individual_params_psycopg2 (line 68) | def test_init_with_individual_params_psycopg2(self, mock_pcycopg2_pool): method test_create_col_psycopg3 (line 99) | def test_create_col_psycopg3(self, mock_get_cursor, mock_connection_po... method test_create_col_psycopg3_with_explicit_pool (line 141) | def test_create_col_psycopg3_with_explicit_pool(self, mock_get_cursor,... method test_create_col_psycopg2_with_explicit_pool (line 195) | def test_create_col_psycopg2_with_explicit_pool(self, mock_get_cursor,... method test_create_col_psycopg2 (line 248) | def test_create_col_psycopg2(self, mock_get_cursor, mock_connection_po... method test_insert_psycopg3 (line 290) | def test_insert_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_insert_psycopg2 (line 335) | def test_insert_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_search_psycopg3 (line 406) | def test_search_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_search_psycopg2 (line 455) | def test_search_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_delete_psycopg3 (line 504) | def test_delete_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_delete_psycopg2 (line 543) | def test_delete_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_update_psycopg3 (line 582) | def test_update_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_update_psycopg2 (line 624) | def test_update_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_get_psycopg3 (line 666) | def test_get_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_get_psycopg2 (line 711) | def test_get_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_list_cols_psycopg3 (line 756) | def test_list_cols_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_list_cols_psycopg2 (line 795) | def test_list_cols_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_delete_col_psycopg3 (line 837) | def test_delete_col_psycopg3(self, mock_get_cursor, mock_connection_po... method test_delete_col_psycopg2 (line 876) | def test_delete_col_psycopg2(self, mock_get_cursor, mock_connection_po... method test_col_info_psycopg3 (line 915) | def test_col_info_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_col_info_psycopg2 (line 960) | def test_col_info_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_list_psycopg3 (line 1005) | def test_list_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_list_psycopg2 (line 1053) | def test_list_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_search_with_filters_psycopg3 (line 1101) | def test_search_with_filters_psycopg3(self, mock_get_cursor, mock_conn... method test_search_with_filters_psycopg2 (line 1151) | def test_search_with_filters_psycopg2(self, mock_get_cursor, mock_conn... method test_search_with_single_filter_psycopg3 (line 1201) | def test_search_with_single_filter_psycopg3(self, mock_get_cursor, moc... method test_search_with_single_filter_psycopg2 (line 1249) | def test_search_with_single_filter_psycopg2(self, mock_get_cursor, moc... method test_search_with_no_filters_psycopg3 (line 1297) | def test_search_with_no_filters_psycopg3(self, mock_get_cursor, mock_c... method test_search_with_no_filters_psycopg2 (line 1346) | def test_search_with_no_filters_psycopg2(self, mock_get_cursor, mock_c... method test_list_with_filters_psycopg3 (line 1395) | def test_list_with_filters_psycopg3(self, mock_get_cursor, mock_connec... method test_list_with_filters_psycopg2 (line 1444) | def test_list_with_filters_psycopg2(self, mock_get_cursor, mock_connec... method test_list_with_single_filter_psycopg3 (line 1493) | def test_list_with_single_filter_psycopg3(self, mock_get_cursor, mock_... method test_list_with_single_filter_psycopg2 (line 1541) | def test_list_with_single_filter_psycopg2(self, mock_get_cursor, mock_... method test_list_with_no_filters_psycopg3 (line 1589) | def test_list_with_no_filters_psycopg3(self, mock_get_cursor, mock_con... method test_list_with_no_filters_psycopg2 (line 1637) | def test_list_with_no_filters_psycopg2(self, mock_get_cursor, mock_con... method test_reset_psycopg3 (line 1685) | def test_reset_psycopg3(self, mock_get_cursor, mock_connection_pool): method test_reset_psycopg2 (line 1727) | def test_reset_psycopg2(self, mock_get_cursor, mock_connection_pool): method test_update_payload_psycopg3_json_handling (line 1771) | def test_update_payload_psycopg3_json_handling(self, mock_json, mock_g... method test_update_payload_psycopg2_json_handling (line 1812) | def test_update_payload_psycopg2_json_handling(self, mock_json, mock_g... method test_transaction_rollback_on_error_psycopg2 (line 1851) | def test_transaction_rollback_on_error_psycopg2(self, mock_connection_... method test_commit_on_success_psycopg2 (line 1896) | def test_commit_on_success_psycopg2(self, mock_connection_pool): method test_pool_connection_error_handling (line 1935) | def test_pool_connection_error_handling(self, mock_get_cursor, mock_co... method test_update_vector_only_psycopg3 (line 1975) | def test_update_vector_only_psycopg3(self, mock_get_cursor, mock_conne... method test_update_both_vector_and_payload_psycopg3 (line 2016) | def test_update_both_vector_and_payload_psycopg3(self, mock_get_cursor... method test_connection_string_with_sslmode_psycopg3 (line 2058) | def test_connection_string_with_sslmode_psycopg3(self, mock_connection... method test_create_col_with_diskann_psycopg3 (line 2097) | def test_create_col_with_diskann_psycopg3(self, mock_get_cursor, mock_... method test_create_col_with_hnsw_psycopg3 (line 2136) | def test_create_col_with_hnsw_psycopg3(self, mock_get_cursor, mock_con... method test_pool_cleanup_psycopg3 (line 2170) | def test_pool_cleanup_psycopg3(self): method test_pool_cleanup_psycopg2 (line 2199) | def test_pool_cleanup_psycopg2(self): method tearDown (line 2228) | def tearDown(self): FILE: tests/vector_stores/test_pinecone.py function mock_pinecone_client (line 9) | def mock_pinecone_client(): function pinecone_db (line 17) | def pinecone_db(mock_pinecone_client): function test_create_col_existing_index (line 34) | def test_create_col_existing_index(mock_pinecone_client): function test_create_col_new_index (line 61) | def test_create_col_new_index(pinecone_db, mock_pinecone_client): function test_insert_vectors (line 67) | def test_insert_vectors(pinecone_db): function test_search_vectors (line 81) | def test_search_vectors(pinecone_db): function test_update_vector (line 96) | def test_update_vector(pinecone_db): function test_get_vector_found (line 104) | def test_get_vector_found(pinecone_db): function test_delete_vector (line 125) | def test_delete_vector(pinecone_db): function test_get_vector_not_found (line 130) | def test_get_vector_not_found(pinecone_db): function test_list_cols (line 137) | def test_list_cols(pinecone_db): function test_delete_col (line 142) | def test_delete_col(pinecone_db): function test_col_info (line 147) | def test_col_info(pinecone_db): function test_count_with_namespace (line 152) | def test_count_with_namespace(pinecone_db): function test_count_without_namespace (line 162) | def test_count_without_namespace(pinecone_db): function test_count_with_non_existent_namespace (line 173) | def test_count_with_non_existent_namespace(pinecone_db): function test_count_with_none_vector_count (line 183) | def test_count_with_none_vector_count(pinecone_db): FILE: tests/vector_stores/test_qdrant.py class TestQdrant (line 17) | class TestQdrant(unittest.TestCase): method setUp (line 18) | def setUp(self): method test_create_col (line 28) | def test_create_col(self): method test_insert (line 39) | def test_insert(self): method test_search (line 55) | def test_search(self): method test_search_with_filters (line 73) | def test_search_with_filters(self): method test_search_with_single_filter (line 103) | def test_search_with_single_filter(self): method test_search_with_no_filters (line 125) | def test_search_with_no_filters(self): method test_create_filter_multiple_filters (line 138) | def test_create_filter_multiple_filters(self): method test_create_filter_single_filter (line 152) | def test_create_filter_single_filter(self): method test_create_filter_no_filters (line 162) | def test_create_filter_no_filters(self): method test_create_filter_with_range_values (line 170) | def test_create_filter_with_range_values(self): method test_delete (line 188) | def test_delete(self): method test_update (line 197) | def test_update(self): method test_get (line 210) | def test_get(self): method test_list_cols (line 222) | def test_list_cols(self): method test_list_with_filters (line 227) | def test_list_with_filters(self): method test_list_with_single_filter (line 256) | def test_list_with_single_filter(self): method test_list_with_no_filters (line 278) | def test_list_with_no_filters(self): method test_delete_col (line 291) | def test_delete_col(self): method test_col_info (line 295) | def test_col_info(self): method tearDown (line 299) | def tearDown(self): FILE: tests/vector_stores/test_s3_vectors.py function mock_boto_client (line 15) | def mock_boto_client(mocker): function mock_embedder (line 23) | def mock_embedder(mocker): function mock_llm (line 32) | def mock_llm(mocker): function test_initialization_creates_resources (line 40) | def test_initialization_creates_resources(mock_boto_client): function test_initialization_uses_existing_resources (line 67) | def test_initialization_uses_existing_resources(mock_boto_client): function test_memory_initialization_with_config (line 83) | def test_memory_initialization_with_config(mock_boto_client, mock_llm, m... function test_insert (line 113) | def test_insert(mock_boto_client): function test_search (line 144) | def test_search(mock_boto_client): function test_get (line 163) | def test_get(mock_boto_client): function test_delete (line 186) | def test_delete(mock_boto_client): function test_reset (line 200) | def test_reset(mock_boto_client): FILE: tests/vector_stores/test_supabase.py function mock_vecs_client (line 10) | def mock_vecs_client(): function mock_collection (line 16) | def mock_collection(): function supabase_instance (line 28) | def supabase_instance(mock_vecs_client, mock_collection): function test_create_col (line 46) | def test_create_col(supabase_instance, mock_vecs_client, mock_collection): function test_insert_vectors (line 53) | def test_insert_vectors(supabase_instance, mock_collection): function test_search_vectors (line 64) | def test_search_vectors(supabase_instance, mock_collection): function test_delete_vector (line 82) | def test_delete_vector(supabase_instance, mock_collection): function test_update_vector (line 88) | def test_update_vector(supabase_instance, mock_collection): function test_get_vector (line 97) | def test_get_vector(supabase_instance, mock_collection): function test_list_vectors (line 114) | def test_list_vectors(supabase_instance, mock_collection): function test_col_info (line 130) | def test_col_info(supabase_instance, mock_collection): function test_preprocess_filters (line 141) | def test_preprocess_filters(supabase_instance): FILE: tests/vector_stores/test_upstash_vector.py class QueryResult (line 11) | class QueryResult: function mock_index (line 20) | def mock_index(): function upstash_instance (line 26) | def upstash_instance(mock_index): function upstash_instance_with_embeddings (line 31) | def upstash_instance_with_embeddings(mock_index): function test_insert_vectors (line 35) | def test_insert_vectors(upstash_instance, mock_index): function test_search_vectors (line 51) | def test_search_vectors(upstash_instance, mock_index): function test_delete_vector (line 85) | def test_delete_vector(upstash_instance): function test_update_vector (line 93) | def test_update_vector(upstash_instance): function test_get_vector (line 109) | def test_get_vector(upstash_instance): function test_list_vectors (line 121) | def test_list_vectors(upstash_instance): function test_insert_vectors_with_embeddings (line 157) | def test_insert_vectors_with_embeddings(upstash_instance_with_embeddings... function test_search_vectors_with_embeddings (line 185) | def test_search_vectors_with_embeddings(upstash_instance_with_embeddings... function test_update_vector_with_embeddings (line 215) | def test_update_vector_with_embeddings(upstash_instance_with_embeddings): function test_insert_vectors_with_embeddings_missing_data (line 230) | def test_insert_vectors_with_embeddings_missing_data(upstash_instance_wi... function test_update_vector_with_embeddings_missing_data (line 242) | def test_update_vector_with_embeddings_missing_data(upstash_instance_wit... function test_list_cols (line 258) | def test_list_cols(upstash_instance): function test_delete_col (line 268) | def test_delete_col(upstash_instance): function test_col_info (line 273) | def test_col_info(upstash_instance): function test_get_vector_not_found (line 288) | def test_get_vector_not_found(upstash_instance): function test_search_vectors_empty_filters (line 297) | def test_search_vectors_empty_filters(upstash_instance): function test_insert_vectors_no_payloads (line 325) | def test_insert_vectors_no_payloads(upstash_instance): function test_insert_vectors_no_ids (line 340) | def test_insert_vectors_no_ids(upstash_instance): FILE: tests/vector_stores/test_valkey.py function mock_valkey_client (line 14) | def mock_valkey_client(): function valkey_db (line 28) | def valkey_db(mock_valkey_client): function test_search_filter_syntax (line 41) | def test_search_filter_syntax(valkey_db, mock_valkey_client): function test_search_without_filters (line 86) | def test_search_without_filters(valkey_db, mock_valkey_client): function test_insert (line 122) | def test_insert(valkey_db, mock_valkey_client): function test_insert_handles_missing_created_at (line 145) | def test_insert_handles_missing_created_at(valkey_db, mock_valkey_client): function test_delete (line 161) | def test_delete(valkey_db, mock_valkey_client): function test_update (line 170) | def test_update(valkey_db, mock_valkey_client): function test_update_handles_missing_created_at (line 192) | def test_update_handles_missing_created_at(valkey_db, mock_valkey_client): function test_get (line 207) | def test_get(valkey_db, mock_valkey_client): function test_get_not_found (line 234) | def test_get_not_found(valkey_db, mock_valkey_client): function test_list_cols (line 244) | def test_list_cols(valkey_db, mock_valkey_client): function test_delete_col (line 262) | def test_delete_col(valkey_db, mock_valkey_client): function test_context_aware_logging (line 285) | def test_context_aware_logging(valkey_db, mock_valkey_client): function test_col_info (line 303) | def test_col_info(valkey_db, mock_valkey_client): function test_create_col (line 324) | def test_create_col(valkey_db, mock_valkey_client): function test_list (line 344) | def test_list(valkey_db, mock_valkey_client): function test_search_error_handling (line 383) | def test_search_error_handling(valkey_db, mock_valkey_client): function test_drop_index_error_handling (line 402) | def test_drop_index_error_handling(valkey_db, mock_valkey_client): function test_reset (line 433) | def test_reset(valkey_db, mock_valkey_client): function test_build_list_query (line 451) | def test_build_list_query(valkey_db): function test_process_document_fields (line 471) | def test_process_document_fields(valkey_db): function test_init_connection_error (line 516) | def test_init_connection_error(): function test_build_search_query (line 531) | def test_build_search_query(valkey_db): function test_get_error_handling (line 557) | def test_get_error_handling(valkey_db, mock_valkey_client): function test_list_error_handling (line 567) | def test_list_error_handling(valkey_db, mock_valkey_client): function test_create_index_other_error (line 580) | def test_create_index_other_error(): function test_create_col_error (line 597) | def test_create_col_error(valkey_db, mock_valkey_client): function test_list_cols_error (line 607) | def test_list_cols_error(valkey_db, mock_valkey_client): function test_col_info_error (line 620) | def test_col_info_error(valkey_db, mock_valkey_client): function test_invalid_index_type (line 634) | def test_invalid_index_type(): function test_index_existence_check_error (line 645) | def test_index_existence_check_error(mock_valkey_client): function test_flat_index_creation (line 661) | def test_flat_index_creation(mock_valkey_client): function test_index_creation_error (line 683) | def test_index_creation_error(mock_valkey_client): function test_insert_missing_required_field (line 699) | def test_insert_missing_required_field(valkey_db, mock_valkey_client): function test_insert_general_error (line 708) | def test_insert_general_error(valkey_db, mock_valkey_client): function test_search_with_invalid_metadata (line 717) | def test_search_with_invalid_metadata(valkey_db, mock_valkey_client): function test_search_with_hnsw_ef_runtime (line 738) | def test_search_with_hnsw_ef_runtime(valkey_db, mock_valkey_client): function test_delete_error (line 753) | def test_delete_error(valkey_db, mock_valkey_client): function test_update_missing_required_field (line 761) | def test_update_missing_required_field(valkey_db, mock_valkey_client): function test_update_general_error (line 769) | def test_update_general_error(valkey_db, mock_valkey_client): function test_get_with_binary_data_and_unicode_error (line 777) | def test_get_with_binary_data_and_unicode_error(valkey_db, mock_valkey_c... function test_get_with_invalid_timestamps (line 798) | def test_get_with_invalid_timestamps(valkey_db, mock_valkey_client): function test_get_with_invalid_metadata_json (line 818) | def test_get_with_invalid_metadata_json(valkey_db, mock_valkey_client): function test_list_with_missing_fields_and_defaults (line 837) | def test_list_with_missing_fields_and_defaults(valkey_db, mock_valkey_cl... FILE: tests/vector_stores/test_vertex_ai_vector_search.py function mock_vertex_ai (line 16) | def mock_vertex_ai(): function config (line 34) | def config(): function vector_store (line 48) | def vector_store(config, mock_vertex_ai): function test_initialization (line 54) | def test_initialization(vector_store, mock_vertex_ai, config): function test_insert_vectors (line 62) | def test_insert_vectors(vector_store, mock_vertex_ai): function test_search_vectors (line 78) | def test_search_vectors(vector_store, mock_vertex_ai): function test_delete (line 119) | def test_delete(vector_store, mock_vertex_ai): function test_error_handling (line 133) | def test_error_handling(vector_store, mock_vertex_ai): FILE: tests/vector_stores/test_weaviate.py class TestWeaviateDB (line 14) | class TestWeaviateDB(unittest.TestCase): method setUpClass (line 16) | def setUpClass(cls): method setUp (line 27) | def setUp(self): method tearDownClass (line 49) | def tearDownClass(cls): method tearDown (line 56) | def tearDown(self): method test_create_col (line 59) | def test_create_col(self): method test_insert (line 72) | def test_insert(self): method test_get (line 87) | def test_get(self): method test_get_not_found (line 114) | def test_get_not_found(self): method test_search (line 121) | def test_search(self): method test_delete (line 148) | def test_delete(self): method test_list (line 153) | def test_list(self): method test_list_cols (line 185) | def test_list_cols(self): method test_delete_col (line 200) | def test_delete_col(self): FILE: vercel-ai-sdk/config/test-config.ts type Provider (line 6) | interface Provider { FILE: vercel-ai-sdk/src/mem0-facade.ts class Mem0 (line 7) | class Mem0 { method constructor (line 11) | constructor(options: Mem0ProviderSettings = { method baseConfig (line 20) | private get baseConfig() { method chat (line 27) | chat(modelId: Mem0ChatModelId, settings: Mem0ChatSettings = {}) { method completion (line 35) | completion(modelId: Mem0ChatModelId, settings: Mem0ChatSettings = {}) { FILE: vercel-ai-sdk/src/mem0-generic-language-model.ts class Mem0GenericLanguageModel (line 20) | class Mem0GenericLanguageModel implements LanguageModelV2 { method constructor (line 30) | constructor( method processMemories (line 41) | private async processMemories(messagesPrompts: LanguageModelV2Message[... method doGenerate (line 108) | async doGenerate(options: LanguageModelV2CallOptions): Promise