repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/faiss.py
mem0/configs/vector_stores/faiss.py
from typing import Any, Dict, Optional from pydantic import BaseModel, ConfigDict, Field, model_validator class FAISSConfig(BaseModel): collection_name: str = Field("mem0", description="Default name for the collection") path: Optional[str] = Field(None, description="Path to store FAISS index and metadata") ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/cassandra.py
mem0/configs/vector_stores/cassandra.py
from typing import Any, Dict, List, Optional from pydantic import BaseModel, Field, model_validator class CassandraConfig(BaseModel): """Configuration for Apache Cassandra vector database.""" contact_points: List[str] = Field( ..., description="List of contact point addresses (e.g., ['127.0....
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/milvus.py
mem0/configs/vector_stores/milvus.py
from enum import Enum from typing import Any, Dict from pydantic import BaseModel, ConfigDict, Field, model_validator class MetricType(str, Enum): """ Metric Constant for milvus/ zilliz server. """ def __str__(self) -> str: return str(self.value) L2 = "L2" IP = "IP" COSINE = "CO...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/redis.py
mem0/configs/vector_stores/redis.py
from typing import Any, Dict from pydantic import BaseModel, ConfigDict, Field, model_validator # TODO: Upgrade to latest pydantic version class RedisDBConfig(BaseModel): redis_url: str = Field(..., description="Redis URL") collection_name: str = Field("mem0", description="Collection name") embedding_mod...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/mongodb.py
mem0/configs/vector_stores/mongodb.py
from typing import Any, Dict, Optional from pydantic import BaseModel, Field, model_validator class MongoDBConfig(BaseModel): """Configuration for MongoDB vector database.""" db_name: str = Field("mem0_db", description="Name of the MongoDB database") collection_name: str = Field("mem0", description="Nam...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/supabase.py
mem0/configs/vector_stores/supabase.py
from enum import Enum from typing import Any, Dict, Optional from pydantic import BaseModel, Field, model_validator class IndexMethod(str, Enum): AUTO = "auto" HNSW = "hnsw" IVFFLAT = "ivfflat" class IndexMeasure(str, Enum): COSINE = "cosine_distance" L2 = "l2_distance" L1 = "l1_distance" ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/pgvector.py
mem0/configs/vector_stores/pgvector.py
from typing import Any, Dict, Optional from pydantic import BaseModel, Field, model_validator class PGVectorConfig(BaseModel): dbname: str = Field("postgres", description="Default name for the database") collection_name: str = Field("mem0", description="Default name for the collection") embedding_model_d...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/opensearch.py
mem0/configs/vector_stores/opensearch.py
from typing import Any, Dict, Optional, Type, Union from pydantic import BaseModel, Field, model_validator class OpenSearchConfig(BaseModel): collection_name: str = Field("mem0", description="Name of the index") host: str = Field("localhost", description="OpenSearch host") port: int = Field(9200, descrip...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/azure_ai_search.py
mem0/configs/vector_stores/azure_ai_search.py
from typing import Any, Dict, Optional from pydantic import BaseModel, ConfigDict, Field, model_validator class AzureAISearchConfig(BaseModel): collection_name: str = Field("mem0", description="Name of the collection") service_name: str = Field(None, description="Azure AI Search service name") api_key: s...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/chroma.py
mem0/configs/vector_stores/chroma.py
from typing import Any, ClassVar, Dict, Optional from pydantic import BaseModel, ConfigDict, Field, model_validator class ChromaDbConfig(BaseModel): try: from chromadb.api.client import Client except ImportError: raise ImportError("The 'chromadb' library is required. Please install it using '...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/s3_vectors.py
mem0/configs/vector_stores/s3_vectors.py
from typing import Any, Dict, Optional from pydantic import BaseModel, ConfigDict, Field, model_validator class S3VectorsConfig(BaseModel): vector_bucket_name: str = Field(description="Name of the S3 Vector bucket") collection_name: str = Field("mem0", description="Name of the vector index") embedding_mo...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/azure_mysql.py
mem0/configs/vector_stores/azure_mysql.py
from typing import Any, Dict, Optional from pydantic import BaseModel, Field, model_validator class AzureMySQLConfig(BaseModel): """Configuration for Azure MySQL vector database.""" host: str = Field(..., description="MySQL server host (e.g., myserver.mysql.database.azure.com)") port: int = Field(3306, ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/__init__.py
mem0/configs/vector_stores/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/pinecone.py
mem0/configs/vector_stores/pinecone.py
import os from typing import Any, Dict, Optional from pydantic import BaseModel, ConfigDict, Field, model_validator class PineconeConfig(BaseModel): """Configuration for Pinecone vector database.""" collection_name: str = Field("mem0", description="Name of the index/collection") embedding_model_dims: in...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/baidu.py
mem0/configs/vector_stores/baidu.py
from typing import Any, Dict from pydantic import BaseModel, ConfigDict, Field, model_validator class BaiduDBConfig(BaseModel): endpoint: str = Field("http://localhost:8287", description="Endpoint URL for Baidu VectorDB") account: str = Field("root", description="Account for Baidu VectorDB") api_key: str...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/langchain.py
mem0/configs/vector_stores/langchain.py
from typing import Any, ClassVar, Dict from pydantic import BaseModel, ConfigDict, Field, model_validator class LangchainConfig(BaseModel): try: from langchain_community.vectorstores import VectorStore except ImportError: raise ImportError( "The 'langchain_community' library is re...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/weaviate.py
mem0/configs/vector_stores/weaviate.py
from typing import Any, ClassVar, Dict, Optional from pydantic import BaseModel, ConfigDict, Field, model_validator class WeaviateConfig(BaseModel): from weaviate import WeaviateClient WeaviateClient: ClassVar[type] = WeaviateClient collection_name: str = Field("mem0", description="Name of the collecti...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/elasticsearch.py
mem0/configs/vector_stores/elasticsearch.py
from collections.abc import Callable from typing import Any, Dict, List, Optional from pydantic import BaseModel, Field, model_validator class ElasticsearchConfig(BaseModel): collection_name: str = Field("mem0", description="Name of the index") host: str = Field("localhost", description="Elasticsearch host")...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/vector_stores/qdrant.py
mem0/configs/vector_stores/qdrant.py
from typing import Any, ClassVar, Dict, Optional from pydantic import BaseModel, ConfigDict, Field, model_validator class QdrantConfig(BaseModel): from qdrant_client import QdrantClient QdrantClient: ClassVar[type] = QdrantClient collection_name: str = Field("mem0", description="Name of the collection"...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/embeddings/__init__.py
mem0/configs/embeddings/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/embeddings/base.py
mem0/configs/embeddings/base.py
import os from abc import ABC from typing import Dict, Optional, Union import httpx from mem0.configs.base import AzureConfig class BaseEmbedderConfig(ABC): """ Config for Embeddings. """ def __init__( self, model: Optional[str] = None, api_key: Optional[str] = None, ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/rerankers/llm.py
mem0/configs/rerankers/llm.py
from typing import Optional from pydantic import Field from mem0.configs.rerankers.base import BaseRerankerConfig class LLMRerankerConfig(BaseRerankerConfig): """ Configuration for LLM-based reranker. Attributes: model (str): LLM model to use for reranking. Defaults to "gpt-4o-mini". ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/rerankers/huggingface.py
mem0/configs/rerankers/huggingface.py
from typing import Optional from pydantic import Field from mem0.configs.rerankers.base import BaseRerankerConfig class HuggingFaceRerankerConfig(BaseRerankerConfig): """ Configuration class for HuggingFace reranker-specific parameters. Inherits from BaseRerankerConfig and adds HuggingFace-specific setti...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/rerankers/config.py
mem0/configs/rerankers/config.py
from typing import Optional from pydantic import BaseModel, Field class RerankerConfig(BaseModel): """Configuration for rerankers.""" provider: str = Field(description="Reranker provider (e.g., 'cohere', 'sentence_transformer')", default="cohere") config: Optional[dict] = Field(description="Provider-spe...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/rerankers/cohere.py
mem0/configs/rerankers/cohere.py
from typing import Optional from pydantic import Field from mem0.configs.rerankers.base import BaseRerankerConfig class CohereRerankerConfig(BaseRerankerConfig): """ Configuration class for Cohere reranker-specific parameters. Inherits from BaseRerankerConfig and adds Cohere-specific settings. """ ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/rerankers/__init__.py
mem0/configs/rerankers/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/rerankers/sentence_transformer.py
mem0/configs/rerankers/sentence_transformer.py
from typing import Optional from pydantic import Field from mem0.configs.rerankers.base import BaseRerankerConfig class SentenceTransformerRerankerConfig(BaseRerankerConfig): """ Configuration class for Sentence Transformer reranker-specific parameters. Inherits from BaseRerankerConfig and adds Sentence ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/rerankers/base.py
mem0/configs/rerankers/base.py
from typing import Optional from pydantic import BaseModel, Field class BaseRerankerConfig(BaseModel): """ Base configuration for rerankers with only common parameters. Provider-specific configurations should be handled by separate config classes. This class contains only the parameters that are comm...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/configs/rerankers/zero_entropy.py
mem0/configs/rerankers/zero_entropy.py
from typing import Optional from pydantic import Field from mem0.configs.rerankers.base import BaseRerankerConfig class ZeroEntropyRerankerConfig(BaseRerankerConfig): """ Configuration for Zero Entropy reranker. Attributes: model (str): Model to use for reranking. Defaults to "zerank-1". ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/client/main.py
mem0/client/main.py
import hashlib import logging import os import warnings from typing import Any, Dict, List, Optional import httpx import requests from mem0.client.project import AsyncProject, Project from mem0.client.utils import api_error_handler # Exception classes are referenced in docstrings only from mem0.memory.setup import ge...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
true
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/client/utils.py
mem0/client/utils.py
import json import logging import httpx from mem0.exceptions import ( NetworkError, create_exception_from_response, ) logger = logging.getLogger(__name__) class APIError(Exception): """Exception raised for errors in the API. Deprecated: Use specific exception classes from mem0.exceptions instea...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/client/__init__.py
mem0/client/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/client/project.py
mem0/client/project.py
import logging from abc import ABC, abstractmethod from typing import Any, Dict, List, Optional import httpx from pydantic import BaseModel, ConfigDict, Field from mem0.client.utils import api_error_handler from mem0.memory.telemetry import capture_client_event # Exception classes are referenced in docstrings only l...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/ollama.py
mem0/embeddings/ollama.py
import subprocess import sys from typing import Literal, Optional from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase try: from ollama import Client except ImportError: user_input = input("The 'ollama' library is required. Install it now? [y/N]: ") if...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/aws_bedrock.py
mem0/embeddings/aws_bedrock.py
import json import os from typing import Literal, Optional try: import boto3 except ImportError: raise ImportError("The 'boto3' library is required. Please install it using 'pip install boto3'.") import numpy as np from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import E...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/together.py
mem0/embeddings/together.py
import os from typing import Literal, Optional from together import Together from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase class TogetherEmbedding(EmbeddingBase): def __init__(self, config: Optional[BaseEmbedderConfig] = None): super().__init_...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/configs.py
mem0/embeddings/configs.py
from typing import Optional from pydantic import BaseModel, Field, field_validator class EmbedderConfig(BaseModel): provider: str = Field( description="Provider of the embedding model (e.g., 'ollama', 'openai')", default="openai", ) config: Optional[dict] = Field(description="Configuratio...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/lmstudio.py
mem0/embeddings/lmstudio.py
from typing import Literal, Optional from openai import OpenAI from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase class LMStudioEmbedding(EmbeddingBase): def __init__(self, config: Optional[BaseEmbedderConfig] = None): super().__init__(config) ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/mock.py
mem0/embeddings/mock.py
from typing import Literal, Optional from mem0.embeddings.base import EmbeddingBase class MockEmbeddings(EmbeddingBase): def embed(self, text, memory_action: Optional[Literal["add", "search", "update"]] = None): """ Generate a mock embedding with dimension of 10. """ return [0.1, ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/huggingface.py
mem0/embeddings/huggingface.py
import logging from typing import Literal, Optional from openai import OpenAI from sentence_transformers import SentenceTransformer from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase logging.getLogger("transformers").setLevel(logging.WARNING) logging.getLogger(...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/__init__.py
mem0/embeddings/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/vertexai.py
mem0/embeddings/vertexai.py
import os from typing import Literal, Optional from vertexai.language_models import TextEmbeddingInput, TextEmbeddingModel from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase from mem0.utils.gcp_auth import GCPAuthenticator class VertexAIEmbedding(EmbeddingBase...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/azure_openai.py
mem0/embeddings/azure_openai.py
import os from typing import Literal, Optional from azure.identity import DefaultAzureCredential, get_bearer_token_provider from openai import AzureOpenAI from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase SCOPE = "https://cognitiveservices.azure.com/.default" ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/base.py
mem0/embeddings/base.py
from abc import ABC, abstractmethod from typing import Literal, Optional from mem0.configs.embeddings.base import BaseEmbedderConfig class EmbeddingBase(ABC): """Initialized a base embedding class :param config: Embedding configuration option class, defaults to None :type config: Optional[BaseEmbedderCo...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/fastembed.py
mem0/embeddings/fastembed.py
from typing import Optional, Literal from mem0.embeddings.base import EmbeddingBase from mem0.configs.embeddings.base import BaseEmbedderConfig try: from fastembed import TextEmbedding except ImportError: raise ImportError("FastEmbed is not installed. Please install it using `pip install fastembed`") class ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/langchain.py
mem0/embeddings/langchain.py
from typing import Literal, Optional from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase try: from langchain.embeddings.base import Embeddings except ImportError: raise ImportError("langchain is not installed. Please install it using `pip install langchai...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/openai.py
mem0/embeddings/openai.py
import os import warnings from typing import Literal, Optional from openai import OpenAI from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase class OpenAIEmbedding(EmbeddingBase): def __init__(self, config: Optional[BaseEmbedderConfig] = None): super...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/mem0/embeddings/gemini.py
mem0/embeddings/gemini.py
import os from typing import Literal, Optional from google import genai from google.genai import types from mem0.configs.embeddings.base import BaseEmbedderConfig from mem0.embeddings.base import EmbeddingBase class GoogleGenAIEmbedding(EmbeddingBase): def __init__(self, config: Optional[BaseEmbedderConfig] = N...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/client.py
embedchain/embedchain/client.py
import json import logging import os import uuid import requests from embedchain.constants import CONFIG_DIR, CONFIG_FILE logger = logging.getLogger(__name__) class Client: def __init__(self, api_key=None, host="https://apiv2.embedchain.ai"): self.config_data = self.load_config() self.host = ho...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/cli.py
embedchain/embedchain/cli.py
import json import os import shutil import signal import subprocess import sys import tempfile import time import zipfile from pathlib import Path import click import requests from rich.console import Console from embedchain.telemetry.posthog import AnonymousTelemetry from embedchain.utils.cli import ( deploy_fly...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/constants.py
embedchain/embedchain/constants.py
import os from pathlib import Path ABS_PATH = os.getcwd() HOME_DIR = os.environ.get("EMBEDCHAIN_CONFIG_DIR", str(Path.home())) CONFIG_DIR = os.path.join(HOME_DIR, ".embedchain") CONFIG_FILE = os.path.join(CONFIG_DIR, "config.json") SQLITE_PATH = os.path.join(CONFIG_DIR, "embedchain.db") # Set the environment variable...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/factory.py
embedchain/embedchain/factory.py
import importlib def load_class(class_type): module_path, class_name = class_type.rsplit(".", 1) module = importlib.import_module(module_path) return getattr(module, class_name) class LlmFactory: provider_to_class = { "anthropic": "embedchain.llm.anthropic.AnthropicLlm", "azure_opena...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/pipeline.py
embedchain/embedchain/pipeline.py
from embedchain.app import App class Pipeline(App): """ This is deprecated. Use `App` instead. """ pass
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/__init__.py
embedchain/embedchain/__init__.py
import importlib.metadata __version__ = importlib.metadata.version(__package__ or __name__) from embedchain.app import App # noqa: F401 from embedchain.client import Client # noqa: F401 from embedchain.pipeline import Pipeline # noqa: F401 # Setup the user directory if doesn't exist already Client.setup()
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/embedchain.py
embedchain/embedchain/embedchain.py
import hashlib import json import logging from typing import Any, Optional, Union from dotenv import load_dotenv from langchain.docstore.document import Document from embedchain.cache import ( adapt, get_gptcache_session, gptcache_data_convert, gptcache_update_cache_callback, ) from embedchain.chunker...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
true
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/cache.py
embedchain/embedchain/cache.py
import logging import os # noqa: F401 from typing import Any from gptcache import cache # noqa: F401 from gptcache.adapter.adapter import adapt # noqa: F401 from gptcache.config import Config # noqa: F401 from gptcache.manager import get_data_manager from gptcache.manager.scalar_data.base import Answer from gptcac...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/app.py
embedchain/embedchain/app.py
import ast import concurrent.futures import json import logging import os from typing import Any, Optional, Union import requests import yaml from tqdm import tqdm from embedchain.cache import ( Config, ExactMatchEvaluation, SearchDistanceEvaluation, cache, gptcache_data_manager, gptcache_pre_...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/lancedb.py
embedchain/embedchain/vectordb/lancedb.py
from typing import Any, Dict, List, Optional, Union import pyarrow as pa try: import lancedb except ImportError: raise ImportError('LanceDB is required. Install with pip install "embedchain[lancedb]"') from None from embedchain.config.vector_db.lancedb import LanceDBConfig from embedchain.helpers.json_serial...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/opensearch.py
embedchain/embedchain/vectordb/opensearch.py
import logging import time from typing import Any, Optional, Union from tqdm import tqdm try: from opensearchpy import OpenSearch from opensearchpy.helpers import bulk except ImportError: raise ImportError( "OpenSearch requires extra dependencies. Install with `pip install --upgrade embedchain[ope...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/chroma.py
embedchain/embedchain/vectordb/chroma.py
import logging from typing import Any, Optional, Union from chromadb import Collection, QueryResult from langchain.docstore.document import Document from tqdm import tqdm from embedchain.config import ChromaDbConfig from embedchain.helpers.json_serializable import register_deserializable from embedchain.vectordb.base...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/__init__.py
embedchain/embedchain/vectordb/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/base.py
embedchain/embedchain/vectordb/base.py
from embedchain.config.vector_db.base import BaseVectorDbConfig from embedchain.embedder.base import BaseEmbedder from embedchain.helpers.json_serializable import JSONSerializable class BaseVectorDB(JSONSerializable): """Base class for vector database.""" def __init__(self, config: BaseVectorDbConfig): ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/pinecone.py
embedchain/embedchain/vectordb/pinecone.py
import logging import os from typing import Optional, Union try: import pinecone except ImportError: raise ImportError( "Pinecone requires extra dependencies. Install with `pip install pinecone-text pinecone-client`" ) from None from pinecone_text.sparse import BM25Encoder from embedchain.config....
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/weaviate.py
embedchain/embedchain/vectordb/weaviate.py
import copy import os from typing import Optional, Union try: import weaviate except ImportError: raise ImportError( "Weaviate requires extra dependencies. Install with `pip install --upgrade 'embedchain[weaviate]'`" ) from None from embedchain.config.vector_db.weaviate import WeaviateDBConfig fro...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/elasticsearch.py
embedchain/embedchain/vectordb/elasticsearch.py
import logging from typing import Any, Optional, Union try: from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk except ImportError: raise ImportError( "Elasticsearch requires extra dependencies. Install with `pip install --upgrade embedchain[elasticsearch]`" ) from No...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/zilliz.py
embedchain/embedchain/vectordb/zilliz.py
import logging from typing import Any, Optional, Union from embedchain.config import ZillizDBConfig from embedchain.helpers.json_serializable import register_deserializable from embedchain.vectordb.base import BaseVectorDB try: from pymilvus import ( Collection, CollectionSchema, DataType,...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/vectordb/qdrant.py
embedchain/embedchain/vectordb/qdrant.py
import copy import os from typing import Any, Optional, Union try: from qdrant_client import QdrantClient from qdrant_client.http import models from qdrant_client.http.models import Batch from qdrant_client.models import Distance, VectorParams except ImportError: raise ImportError("Qdrant requires ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/bots/whatsapp.py
embedchain/embedchain/bots/whatsapp.py
import argparse import importlib import logging import signal import sys from embedchain.helpers.json_serializable import register_deserializable from .base import BaseBot logger = logging.getLogger(__name__) @register_deserializable class WhatsAppBot(BaseBot): def __init__(self): try: self...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/bots/discord.py
embedchain/embedchain/bots/discord.py
import argparse import logging import os from embedchain.helpers.json_serializable import register_deserializable from .base import BaseBot try: import discord from discord import app_commands from discord.ext import commands except ModuleNotFoundError: raise ModuleNotFoundError( "The require...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/bots/poe.py
embedchain/embedchain/bots/poe.py
import argparse import logging import os from typing import Optional from embedchain.helpers.json_serializable import register_deserializable from .base import BaseBot try: from fastapi_poe import PoeBot, run except ModuleNotFoundError: raise ModuleNotFoundError( "The required dependencies for Poe ar...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/bots/__init__.py
embedchain/embedchain/bots/__init__.py
from embedchain.bots.poe import PoeBot # noqa: F401 from embedchain.bots.whatsapp import WhatsAppBot # noqa: F401 # TODO: fix discord import # from embedchain.bots.discord import DiscordBot
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/bots/slack.py
embedchain/embedchain/bots/slack.py
import argparse import logging import os import signal import sys from embedchain import App from embedchain.helpers.json_serializable import register_deserializable from .base import BaseBot try: from flask import Flask, request from slack_sdk import WebClient except ModuleNotFoundError: raise ModuleNot...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/bots/base.py
embedchain/embedchain/bots/base.py
from typing import Any from embedchain import App from embedchain.config import AddConfig, AppConfig, BaseLlmConfig from embedchain.embedder.openai import OpenAIEmbedder from embedchain.helpers.json_serializable import ( JSONSerializable, register_deserializable, ) from embedchain.llm.openai import OpenAILlm f...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/data_formatter/data_formatter.py
embedchain/embedchain/data_formatter/data_formatter.py
from importlib import import_module from typing import Any, Optional from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config import AddConfig from embedchain.config.add_config import ChunkerConfig, LoaderConfig from embedchain.helpers.json_serializable import JSONSerializable from embedchain.lo...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/data_formatter/__init__.py
embedchain/embedchain/data_formatter/__init__.py
from .data_formatter import DataFormatter # noqa: F401
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/qna_pair.py
embedchain/embedchain/chunkers/qna_pair.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class QnaPa...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/image.py
embedchain/embedchain/chunkers/image.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Image...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/web_page.py
embedchain/embedchain/chunkers/web_page.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class WebPa...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/sitemap.py
embedchain/embedchain/chunkers/sitemap.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Sitem...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/table.py
embedchain/embedchain/chunkers/table.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig class TableChunker(BaseChunker): """Chunker for tables, for instance csv, google sheets or databases.""" ...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/pdf_file.py
embedchain/embedchain/chunkers/pdf_file.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class PdfFi...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/docs_site.py
embedchain/embedchain/chunkers/docs_site.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class DocsS...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/substack.py
embedchain/embedchain/chunkers/substack.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Subst...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/audio.py
embedchain/embedchain/chunkers/audio.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Audio...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/excel_file.py
embedchain/embedchain/chunkers/excel_file.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Excel...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/xml.py
embedchain/embedchain/chunkers/xml.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class XmlCh...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/youtube_video.py
embedchain/embedchain/chunkers/youtube_video.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Youtu...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/unstructured_file.py
embedchain/embedchain/chunkers/unstructured_file.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Unstr...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/mysql.py
embedchain/embedchain/chunkers/mysql.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class MySQL...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/postgres.py
embedchain/embedchain/chunkers/postgres.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Postg...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/docx_file.py
embedchain/embedchain/chunkers/docx_file.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class DocxF...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/beehiiv.py
embedchain/embedchain/chunkers/beehiiv.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Beehi...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/mdx.py
embedchain/embedchain/chunkers/mdx.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class MdxCh...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/discourse.py
embedchain/embedchain/chunkers/discourse.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Disco...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/base_chunker.py
embedchain/embedchain/chunkers/base_chunker.py
import hashlib import logging from typing import Any, Optional from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import JSONSerializable from embedchain.models.data_type import DataType logger = logging.getLogger(__name__) class BaseChunker(JSONSerializable): def _...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/__init__.py
embedchain/embedchain/chunkers/__init__.py
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/rss_feed.py
embedchain/embedchain/chunkers/rss_feed.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class RSSFe...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/slack.py
embedchain/embedchain/chunkers/slack.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class Slack...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/json.py
embedchain/embedchain/chunkers/json.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class JSONC...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false
mem0ai/mem0
https://github.com/mem0ai/mem0/blob/69a552d8a85637452ea20382a6ac3991fd6d60b3/embedchain/embedchain/chunkers/text.py
embedchain/embedchain/chunkers/text.py
from typing import Optional from langchain.text_splitter import RecursiveCharacterTextSplitter from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config.add_config import ChunkerConfig from embedchain.helpers.json_serializable import register_deserializable @register_deserializable class TextC...
python
Apache-2.0
69a552d8a85637452ea20382a6ac3991fd6d60b3
2026-01-04T14:39:42.142319Z
false