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
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-fireworks/llama_index/embeddings/fireworks/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-fireworks/llama_index/embeddings/fireworks/__init__.py
from llama_index.embeddings.fireworks.base import FireworksEmbedding __all__ = ["FireworksEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-fireworks/llama_index/embeddings/fireworks/base.py
llama-index-integrations/embeddings/llama-index-embeddings-fireworks/llama_index/embeddings/fireworks/base.py
from typing import Any, Dict, Optional import httpx from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, ) from llama_index.core.bridge.pydantic import Field from llama_index.core.callbacks import CallbackManager from llama_index.embeddings.fireworks.utils import ( resolve_fireworks_cr...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-clarifai/llama_index/embeddings/clarifai/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-clarifai/llama_index/embeddings/clarifai/__init__.py
from llama_index.embeddings.clarifai.base import ClarifaiEmbedding __all__ = ["ClarifaiEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-clarifai/llama_index/embeddings/clarifai/base.py
llama-index-integrations/embeddings/llama-index-embeddings-clarifai/llama_index/embeddings/clarifai/base.py
import logging import os from typing import Any, List, Optional from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.callbacks import CallbackManager from llama_index.core.constants import DEFAULT_EMBED_BATCH_SIZE from cl...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-databricks/tests/test_embeddings_databricks.py
llama-index-integrations/embeddings/llama-index-embeddings-databricks/tests/test_embeddings_databricks.py
import pytest from llama_index.core.base.embeddings.base import BaseEmbedding # TODO: Pants, for whatever reason, always breaks on tests that depend on openai embeddings # It fails to resolve dependencies properly during testing, so this import will fail in CICD try: from llama_index.embeddings.databricks import D...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-databricks/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-databricks/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-databricks/tests/test_integration_databricks.py
llama-index-integrations/embeddings/llama-index-embeddings-databricks/tests/test_integration_databricks.py
import os import pytest # TODO: Pants, for whatever reason, always breaks on tests that depend on openai embeddings # It fails to resolve dependencies properly during testing, so this import will fail in CICD try: from llama_index.embeddings.databricks import DatabricksEmbedding except ImportError: DatabricksE...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-databricks/llama_index/embeddings/databricks/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-databricks/llama_index/embeddings/databricks/__init__.py
from llama_index.embeddings.databricks.base import DatabricksEmbedding __all__ = ["DatabricksEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-databricks/llama_index/embeddings/databricks/base.py
llama-index-integrations/embeddings/llama-index-embeddings-databricks/llama_index/embeddings/databricks/base.py
"""Databricks embeddings file.""" from typing import Optional, Any, Dict, List import httpx from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.callbacks.base import CallbackManager from llama_index.embeddings.openai.base import ( get_embedding, aget_embedding, get_embeddi...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-openvino-genai/llama_index/embeddings/openvino_genai/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-openvino-genai/llama_index/embeddings/openvino_genai/__init__.py
from llama_index.embeddings.openvino_genai.base import ( OpenVINOGENAIEmbedding, ) __all__ = ["OpenVINOGENAIEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-openvino-genai/llama_index/embeddings/openvino_genai/base.py
llama-index-integrations/embeddings/llama-index-embeddings-openvino-genai/llama_index/embeddings/openvino_genai/base.py
from typing import Any, List, Optional from pathlib import Path import numpy as np from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, ) from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.callbacks import CallbackManager from llama_ind...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-zhipuai/tests/test_embeddings_zhipuai.py
llama-index-integrations/embeddings/llama-index-embeddings-zhipuai/tests/test_embeddings_zhipuai.py
import asyncio import os import pytest from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.zhipuai import ZhipuAIEmbedding def test_embedding_class(): emb = ZhipuAIEmbedding(model="", api_key="") assert isinstance(emb, BaseEmbedding) @pytest.mark.skipif( os.enviro...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-zhipuai/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-zhipuai/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-zhipuai/llama_index/embeddings/zhipuai/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-zhipuai/llama_index/embeddings/zhipuai/__init__.py
from llama_index.embeddings.zhipuai.base import ZhipuAIEmbedding __all__ = ["ZhipuAIEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-zhipuai/llama_index/embeddings/zhipuai/base.py
llama-index-integrations/embeddings/llama-index-embeddings-zhipuai/llama_index/embeddings/zhipuai/base.py
import asyncio from typing import Any, List, Optional from zhipuai import ZhipuAI as ZhipuAIClient from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.callbacks import CallbackManager class ZhipuAIEmbedding(BaseEmbedding...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-cohere/tests/conftest.py
llama-index-integrations/embeddings/llama-index-embeddings-cohere/tests/conftest.py
# pants requires this import to recognize the dep import pytest_asyncio # noqa: F401
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-cohere/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-cohere/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-cohere/tests/test_embeddings.py
llama-index-integrations/embeddings/llama-index-embeddings-cohere/tests/test_embeddings.py
import os import tempfile import httpx import pytest from PIL import Image from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.cohere import CohereEmbedding from llama_index.embeddings.cohere.base import VALID_MODEL_INPUT_TYPES def test_embedding_class(): emb = CohereEmbed...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-cohere/llama_index/embeddings/cohere/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-cohere/llama_index/embeddings/cohere/__init__.py
from llama_index.embeddings.cohere.base import CohereEmbedding __all__ = ["CohereEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-cohere/llama_index/embeddings/cohere/base.py
llama-index-integrations/embeddings/llama-index-embeddings-cohere/llama_index/embeddings/cohere/base.py
from enum import Enum from typing import Any, List, Optional, Union from llama_index.core.base.embeddings.base import DEFAULT_EMBED_BATCH_SIZE, Embedding from llama_index.core.embeddings import MultiModalEmbedding from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.callbacks import Ca...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-xinference/tests/test_embeddings_xinference.py
llama-index-integrations/embeddings/llama-index-embeddings-xinference/tests/test_embeddings_xinference.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.xinference import XinferenceEmbedding def test_embedding_class(): emb = XinferenceEmbedding(model_uid="") assert isinstance(emb, BaseEmbedding)
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-xinference/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-xinference/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-xinference/llama_index/embeddings/xinference/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-xinference/llama_index/embeddings/xinference/__init__.py
from llama_index.embeddings.xinference.base import XinferenceEmbedding __all__ = ["XinferenceEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-xinference/llama_index/embeddings/xinference/base.py
llama-index-integrations/embeddings/llama-index-embeddings-xinference/llama_index/embeddings/xinference/base.py
import aiohttp import asyncio import requests from typing import Any, List from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.bridge.pydantic import Field class XinferenceEmbedding(BaseEmbedding): """Class for Xinference embeddings.""" model_uid: str = Field( defaul...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-textembed/tests/test_embeddings_textembed.py
llama-index-integrations/embeddings/llama-index-embeddings-textembed/tests/test_embeddings_textembed.py
"""Test the TextEmbed class.""" from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.textembed import TextEmbedEmbedding def test_textembed_class(): """Check if BaseEmbedding is one of the base classes of TextEmbedEmbedding.""" assert issubclass(TextEmbedEmbedding, Base...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-textembed/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-textembed/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-textembed/llama_index/embeddings/textembed/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-textembed/llama_index/embeddings/textembed/__init__.py
from llama_index.embeddings.textembed.base import TextEmbedEmbedding __all__ = ["TextEmbedEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-textembed/llama_index/embeddings/textembed/base.py
llama-index-integrations/embeddings/llama-index-embeddings-textembed/llama_index/embeddings/textembed/base.py
""" TextEmbed: Embedding Inference Server. TextEmbed offers a high-throughput, low-latency service for generating embeddings using various sentence-transformer models. It now also supports image embedding models, providing flexibility and scalability for diverse applications. Maintained by Keval Dekivadiya, TextEmbed...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/tests/test_embeddings_dashscope.py
llama-index-integrations/embeddings/llama-index-embeddings-dashscope/tests/test_embeddings_dashscope.py
from llama_index.core.embeddings.multi_modal_base import MultiModalEmbedding from llama_index.embeddings.dashscope import DashScopeEmbedding def test_dashscope_embedding_class(): names_of_base_classes = [b.__name__ for b in DashScopeEmbedding.__mro__] assert MultiModalEmbedding.__name__ in names_of_base_class...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-dashscope/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/llama_index/embeddings/dashscope/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-dashscope/llama_index/embeddings/dashscope/__init__.py
from llama_index.embeddings.dashscope.base import ( DashScopeEmbedding, DashScopeBatchTextEmbeddingModels, DashScopeMultiModalEmbeddingModels, DashScopeTextEmbeddingModels, DashScopeTextEmbeddingType, ) __all__ = [ DashScopeTextEmbeddingType, DashScopeTextEmbeddingModels, DashScopeBatc...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/llama_index/embeddings/dashscope/base.py
llama-index-integrations/embeddings/llama-index-embeddings-dashscope/llama_index/embeddings/dashscope/base.py
"""DashScope embeddings file.""" import logging from enum import Enum from http import HTTPStatus from typing import Any, Dict, List, Optional, Union from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.embeddings.multi_modal_base import MultiModalEmbedding from llama_index.core.schema impor...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-clip/tests/test_embeddings_clip.py
llama-index-integrations/embeddings/llama-index-embeddings-clip/tests/test_embeddings_clip.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.clip import ClipEmbedding def test_azure_openai_embedding_class(): names_of_base_classes = [b.__name__ for b in ClipEmbedding.__mro__] assert BaseEmbedding.__name__ in names_of_base_classes
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-clip/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-clip/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-clip/llama_index/embeddings/clip/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-clip/llama_index/embeddings/clip/__init__.py
from llama_index.embeddings.clip.base import ClipEmbedding __all__ = ["ClipEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-clip/llama_index/embeddings/clip/base.py
llama-index-integrations/embeddings/llama-index-embeddings-clip/llama_index/embeddings/clip/base.py
import logging from typing import Any, List from llama_index.core.base.embeddings.base import Embedding from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.constants import DEFAULT_EMBED_BATCH_SIZE from llama_index.core.embeddings.multi_modal_base import MultiModalEmbedding from llama...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-autoembeddings/tests/test_autoembeddings.py
llama-index-integrations/embeddings/llama-index-embeddings-autoembeddings/tests/test_autoembeddings.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.autoembeddings import ChonkieAutoEmbedding def test_class_init() -> None: emb = ChonkieAutoEmbedding(model_name="all-MiniLM-L6-v2") assert isinstance(emb, BaseEmbedding)
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-autoembeddings/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-autoembeddings/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-autoembeddings/llama_index/embeddings/autoembeddings/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-autoembeddings/llama_index/embeddings/autoembeddings/__init__.py
from llama_index.embeddings.autoembeddings.base import ChonkieAutoEmbedding __all__ = ["ChonkieAutoEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-autoembeddings/llama_index/embeddings/autoembeddings/base.py
llama-index-integrations/embeddings/llama-index-embeddings-autoembeddings/llama_index/embeddings/autoembeddings/base.py
from typing import List from llama_index.core.base.embeddings.base import BaseEmbedding from typing import Optional try: import chonkie from chonkie import AutoEmbeddings except ImportError: raise ImportError( "Could not import Autembeddings from chonkie. " "Please install it with `pip ins...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-gaudi/examples/basic.py
llama-index-integrations/embeddings/llama-index-embeddings-gaudi/examples/basic.py
from llama_index.embeddings.gaudi import GaudiEmbedding if __name__ == "__main__": embed_model = GaudiEmbedding( embedding_input_size=-1, model_name="thenlper/gte-large", ) # Basic embedding example embeddings = embed_model.get_text_embedding("It is raining cats and dogs here!") pr...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-gaudi/examples/graphrag.py
llama-index-integrations/embeddings/llama-index-embeddings-gaudi/examples/graphrag.py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-gaudi/llama_index/embeddings/gaudi/utils.py
llama-index-integrations/embeddings/llama-index-embeddings-gaudi/llama_index/embeddings/gaudi/utils.py
# This file is adapted from # https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/embeddings/llama-index-embeddings-huggingface/llama_index/embeddings/huggingface/utils.py from typing import Optional, List from pathlib import Path DEFAULT_HUGGINGFACE_EMBEDDING_MODEL = "BAAI/bge-small-en-v1.5" ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-gaudi/llama_index/embeddings/gaudi/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-gaudi/llama_index/embeddings/gaudi/__init__.py
from llama_index.embeddings.gaudi.base import GaudiEmbedding __all__ = ["GaudiEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-gaudi/llama_index/embeddings/gaudi/base.py
llama-index-integrations/embeddings/llama-index-embeddings-gaudi/llama_index/embeddings/gaudi/base.py
# This file is adapted from # https://github.com/HabanaAI/Gaudi-tutorials/blob/main/PyTorch/localGPT_inference/gaudi_utils/embeddings.py # import logging from sentence_transformers import SentenceTransformer from typing import Any, List, Optional from llama_index.core.bridge.pydantic import Field, PrivateAttr from lla...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-opea/llama_index/embeddings/opea/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-opea/llama_index/embeddings/opea/__init__.py
from llama_index.embeddings.opea.base import OPEAEmbedding __all__ = ["OPEAEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-opea/llama_index/embeddings/opea/base.py
llama-index-integrations/embeddings/llama-index-embeddings-opea/llama_index/embeddings/opea/base.py
import httpx from typing import Any, Dict, Optional from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, ) from llama_index.core.callbacks import CallbackManager from llama_index.embeddings.openai import OpenAIEmbedding class OPEAEmbedding(OpenAIEmbedding): """ OPEA class for emb...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-nebius/tests/test_embeddings_nebius.py
llama-index-integrations/embeddings/llama-index-embeddings-nebius/tests/test_embeddings_nebius.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.nebius import NebiusEmbedding def test_embedding_class(): emb = NebiusEmbedding(model_name="per_aspera", api_key="ad_astra") assert isinstance(emb, BaseEmbedding)
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-nebius/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-nebius/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-nebius/llama_index/embeddings/nebius/utils.py
llama-index-integrations/embeddings/llama-index-embeddings-nebius/llama_index/embeddings/nebius/utils.py
from typing import Optional, Tuple from llama_index.core.base.llms.generic_utils import get_from_param_or_env DEFAULT_API_BASE = "https://api.studio.nebius.ai/v1" DEFAULT_NEBIUS_API_VERSION = "" def resolve_nebius_credentials( api_key: Optional[str] = None, api_base: Optional[str] = None, api_version: O...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-nebius/llama_index/embeddings/nebius/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-nebius/llama_index/embeddings/nebius/__init__.py
from llama_index.embeddings.nebius.base import NebiusEmbedding __all__ = ["NebiusEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-nebius/llama_index/embeddings/nebius/base.py
llama-index-integrations/embeddings/llama-index-embeddings-nebius/llama_index/embeddings/nebius/base.py
from typing import Any, Dict, Optional import httpx from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, ) from llama_index.core.bridge.pydantic import Field from llama_index.core.callbacks import CallbackManager from llama_index.embeddings.nebius.utils import ( resolve_nebius_credenti...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-voyageai/tests/test_embeddings_voyageai.py
llama-index-integrations/embeddings/llama-index-embeddings-voyageai/tests/test_embeddings_voyageai.py
from unittest.mock import Mock, patch import pytest from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.voyageai import VoyageEmbedding from llama_index.embeddings.voyageai.base import ( CONTEXT_MODELS, MULTIMODAL_MODELS, VIDEO_MODELS, SUPPORTED_VIDEO_FORMATS, ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-voyageai/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-voyageai/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-voyageai/tests/test_embeddings_voyageai_integration.py
llama-index-integrations/embeddings/llama-index-embeddings-voyageai/tests/test_embeddings_voyageai_integration.py
""" Integration tests for VoyageAI embeddings with batching. These tests require VOYAGE_API_KEY environment variable to be set. Run with: pytest tests/test_embeddings_voyageai_integration.py -v """ import os import tempfile import pytest from llama_index.embeddings.voyageai import VoyageEmbedding from llama_index.e...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-voyageai/llama_index/embeddings/voyageai/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-voyageai/llama_index/embeddings/voyageai/__init__.py
from llama_index.embeddings.voyageai.base import VoyageEmbedding __all__ = ["VoyageEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-voyageai/llama_index/embeddings/voyageai/base.py
llama-index-integrations/embeddings/llama-index-embeddings-voyageai/llama_index/embeddings/voyageai/base.py
"""Voyage embeddings file.""" import logging import os from io import BytesIO from pathlib import Path from typing import Any, Generator, List, Optional, Tuple, Union import voyageai from PIL import Image try: from voyageai.video_utils import Video VIDEO_SUPPORT = True except ImportError: Video = None ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-openai/tests/test_embeddings_openai.py
llama-index-integrations/embeddings/llama-index-embeddings-openai/tests/test_embeddings_openai.py
import pytest from unittest.mock import patch from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.openai import OpenAIEmbedding def test_openai_embedding_class(): names_of_base_classes = [b.__name__ for b in OpenAIEmbedding.__mro__] assert BaseEmbedding.__name__ in nam...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-openai/tests/test_utils.py
llama-index-integrations/embeddings/llama-index-embeddings-openai/tests/test_utils.py
import pytest from llama_index.embeddings.openai.utils import ( DEFAULT_OPENAI_API_BASE, DEFAULT_OPENAI_API_VERSION, MISSING_API_KEY_ERROR_MESSAGE, resolve_openai_credentials, validate_openai_api_key, ) def test_validate_openai_api_key_with_valid_key() -> None: validate_openai_api_key("valid_a...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-openai/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-openai/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-openai/llama_index/embeddings/openai/utils.py
llama-index-integrations/embeddings/llama-index-embeddings-openai/llama_index/embeddings/openai/utils.py
import logging import os from typing import Any, Callable, Optional, Tuple, Union from llama_index.core.base.llms.generic_utils import get_from_param_or_env from tenacity import ( before_sleep_log, retry, retry_if_exception_type, stop_after_attempt, stop_after_delay, wait_exponential, wait_...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-openai/llama_index/embeddings/openai/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-openai/llama_index/embeddings/openai/__init__.py
from llama_index.embeddings.openai.base import ( OpenAIEmbedding, OpenAIEmbeddingMode, OpenAIEmbeddingModelType, OpenAIEmbeddingModeModel, ) __all__ = [ "OpenAIEmbedding", "OpenAIEmbeddingMode", "OpenAIEmbeddingModelType", "OpenAIEmbeddingModeModel", ]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-openai/llama_index/embeddings/openai/base.py
llama-index-integrations/embeddings/llama-index-embeddings-openai/llama_index/embeddings/openai/base.py
"""OpenAI embeddings file.""" from enum import Enum from typing import Any, Dict, List, Optional, Tuple import httpx from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.callbacks.base import CallbackManager from llama_in...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/tests/test_embeddings_text_embeddings_inference.py
llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/tests/test_embeddings_text_embeddings_inference.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.text_embeddings_inference import TextEmbeddingsInference def test_text_inference_embedding_class(): names_of_base_classes = [b.__name__ for b in TextEmbeddingsInference.__mro__] assert BaseEmbedding.__name__ in names_o...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/llama_index/embeddings/text_embeddings_inference/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/llama_index/embeddings/text_embeddings_inference/__init__.py
from llama_index.embeddings.text_embeddings_inference.base import ( TextEmbeddingsInference, ) __all__ = ["TextEmbeddingsInference"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/llama_index/embeddings/text_embeddings_inference/base.py
llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/llama_index/embeddings/text_embeddings_inference/base.py
from typing import Callable, List, Optional, Union from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, Embedding, ) from llama_index.core.bridge.pydantic import Field from llama_index.core.callbacks import CallbackManager from llama_index.utils.huggingface import fo...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-isaacus/tests/test_isaacus_embeddings.py
llama-index-integrations/embeddings/llama-index-embeddings-isaacus/tests/test_isaacus_embeddings.py
"""Test Isaacus embeddings.""" import os from unittest.mock import MagicMock, patch import pytest from llama_index.embeddings.isaacus.base import IsaacusEmbedding STUB_MODEL = "kanon-2-embedder" STUB_API_KEY = "test-api-key" STUB_BASE_URL = "https://api.isaacus.com/v1" @pytest.fixture(name="isaacus_embedding") def...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-isaacus/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-isaacus/tests/__init__.py
# Tests for llama-index-embeddings-isaacus
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-isaacus/examples/basic_usage.py
llama-index-integrations/embeddings/llama-index-embeddings-isaacus/examples/basic_usage.py
"""Basic usage example for Isaacus embeddings.""" import os from llama_index.embeddings.isaacus import IsaacusEmbedding from llama_index.core.base.embeddings.base import similarity def main(): """Demonstrate basic usage of Isaacus embeddings.""" # Initialize the embedding model. This assumes the presence of...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-isaacus/examples/async_usage.py
llama-index-integrations/embeddings/llama-index-embeddings-isaacus/examples/async_usage.py
"""Async usage example for Isaacus embeddings.""" import asyncio import os from llama_index.embeddings.isaacus import IsaacusEmbedding from llama_index.core.base.embeddings.base import similarity async def main(): """Demonstrate async usage of Isaacus embeddings.""" # Initialize the embedding model. This as...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-isaacus/llama_index/embeddings/isaacus/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-isaacus/llama_index/embeddings/isaacus/__init__.py
from llama_index.embeddings.isaacus.base import IsaacusEmbedding __all__ = ["IsaacusEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-isaacus/llama_index/embeddings/isaacus/base.py
llama-index-integrations/embeddings/llama-index-embeddings-isaacus/llama_index/embeddings/isaacus/base.py
"""Isaacus embeddings file.""" import logging from typing import Any, List, Literal, Optional import isaacus from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, Embedding, ) from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.call...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/tests/test_embeddings_yandexgpt.py
llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/tests/test_embeddings_yandexgpt.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.yandexgpt import YandexGPTEmbedding def test_embedding_function(): names_of_base_classes = [b.__name__ for b in YandexGPTEmbedding.__mro__] assert BaseEmbedding.__name__ in names_of_base_classes def test_init(): ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/llama_index/embeddings/yandexgpt/util.py
llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/llama_index/embeddings/yandexgpt/util.py
import json from typing import Optional, Dict class YException(Exception): """Custom exception for YAuth related errors.""" class YAuth: """Class to handle authentication using folder ID and API key.""" def __init__(self, folder_id: str = None, api_key: str = None) -> None: """ Initiali...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/llama_index/embeddings/yandexgpt/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/llama_index/embeddings/yandexgpt/__init__.py
from llama_index.embeddings.yandexgpt.base import YandexGPTEmbedding __all__ = ["YandexGPTEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/llama_index/embeddings/yandexgpt/base.py
llama-index-integrations/embeddings/llama-index-embeddings-yandexgpt/llama_index/embeddings/yandexgpt/base.py
"""YandexGPT embeddings file.""" import time import asyncio import aiohttp import requests from typing import Any, List, Optional from tenacity import Retrying, RetryError, stop_after_attempt, wait_fixed from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, ) from llama...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-google/tests/test_embeddings_google.py
llama-index-integrations/embeddings/llama-index-embeddings-google/tests/test_embeddings_google.py
import pytest from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.google import ( GeminiEmbedding, GooglePaLMEmbedding, GoogleUnivSentEncoderEmbedding, ) try: import tensorflow_hub except ImportError: tensorflow_hub = None # type: ignore @pytest.mark.skipi...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-google/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-google/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-google/llama_index/embeddings/google/univ_sent_encoder.py
llama-index-integrations/embeddings/llama-index-embeddings-google/llama_index/embeddings/google/univ_sent_encoder.py
"""Google Universal Sentence Encoder Embedding Wrapper Module.""" import deprecated from typing import Any, List, Optional from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, ) from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.callbacks imp...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-google/llama_index/embeddings/google/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-google/llama_index/embeddings/google/__init__.py
from llama_index.embeddings.google.gemini import GeminiEmbedding from llama_index.embeddings.google.palm import GooglePaLMEmbedding from llama_index.embeddings.google.univ_sent_encoder import ( GoogleUnivSentEncoderEmbedding, ) __all__ = ["GeminiEmbedding", "GooglePaLMEmbedding", "GoogleUnivSentEncoderEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-google/llama_index/embeddings/google/palm.py
llama-index-integrations/embeddings/llama-index-embeddings-google/llama_index/embeddings/google/palm.py
"""Google PaLM embeddings file.""" import deprecated from typing import Any, List, Optional from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, ) from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.callbacks.base import CallbackManager impor...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-google/llama_index/embeddings/google/gemini.py
llama-index-integrations/embeddings/llama-index-embeddings-google/llama_index/embeddings/google/gemini.py
"""Gemini embeddings file.""" import deprecated from typing import Any, List, Optional from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, ) from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.callbacks.base import CallbackManager imp...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-jinaai/tests/test_embeddings_jinaai.py
llama-index-integrations/embeddings/llama-index-embeddings-jinaai/tests/test_embeddings_jinaai.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.embeddings import MultiModalEmbedding from llama_index.embeddings.jinaai import JinaEmbedding def test_embedding_class(): emb = JinaEmbedding() assert isinstance(emb, BaseEmbedding) assert isinstance(emb, MultiModalEmbed...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-jinaai/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-jinaai/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-jinaai/llama_index/embeddings/jinaai/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-jinaai/llama_index/embeddings/jinaai/__init__.py
from llama_index.embeddings.jinaai.base import JinaEmbedding __all__ = ["JinaEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-jinaai/llama_index/embeddings/jinaai/base.py
llama-index-integrations/embeddings/llama-index-embeddings-jinaai/llama_index/embeddings/jinaai/base.py
"""Jina embeddings file.""" from typing import Any, List, Optional from urllib.parse import urlparse from os.path import exists import base64 import requests import numpy as np from llama_index.core.base.embeddings.base import DEFAULT_EMBED_BATCH_SIZE from llama_index.core.bridge.pydantic import Field, PrivateAttr fr...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/tests/test_embeddings_huggingface.py
llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/tests/test_embeddings_huggingface.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.huggingface_api import ( HuggingFaceInferenceAPIEmbedding, ) def test_huggingfaceapiembedding_class(): names_of_base_classes = [ b.__name__ for b in HuggingFaceInferenceAPIEmbedding.__mro__ ] assert Bas...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/tests/test_hf_inference.py
llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/tests/test_hf_inference.py
from unittest.mock import AsyncMock, MagicMock, patch import numpy as np import pytest from llama_index.embeddings.huggingface_api.base import HuggingFaceInferenceAPIEmbedding from llama_index.embeddings.huggingface_api.pooling import Pooling STUB_MODEL_NAME = "placeholder_model" @pytest.fixture(name="hf_inference_...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/llama_index/embeddings/huggingface_api/pooling.py
llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/llama_index/embeddings/huggingface_api/pooling.py
from enum import Enum from typing import TYPE_CHECKING, Union, overload import numpy as np if TYPE_CHECKING: import torch class Pooling(str, Enum): """Enum of possible pooling choices with pooling behaviors.""" CLS = "cls" MEAN = "mean" LAST = "last" # last token pooling def __call__(self...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/llama_index/embeddings/huggingface_api/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/llama_index/embeddings/huggingface_api/__init__.py
from llama_index.embeddings.huggingface_api.base import ( HuggingFaceInferenceAPIEmbedding, ) __all__ = [ "HuggingFaceInferenceAPIEmbedding", ]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/llama_index/embeddings/huggingface_api/base.py
llama-index-integrations/embeddings/llama-index-embeddings-huggingface-api/llama_index/embeddings/huggingface_api/base.py
import asyncio import logging from typing import Any, Callable, Dict, List, Optional, Sequence, Union from huggingface_hub import ( AsyncInferenceClient, InferenceClient, model_info, ) from huggingface_hub.hf_api import ModelInfo from llama_index.core.base.embeddings.base import ( BaseEmbedding, Em...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-heroku/tests/test_heroku_embeddings.py
llama-index-integrations/embeddings/llama-index-embeddings-heroku/tests/test_heroku_embeddings.py
"""Test Heroku embeddings.""" import os from unittest.mock import MagicMock, patch import httpx import pytest from llama_index.embeddings.heroku.base import HerokuEmbedding STUB_MODEL = "cohere-embed-multilingual-v3" STUB_API_KEY = "test-api-key" STUB_EMBEDDING_URL = "https://test-inference.heroku.com" @pytest.fix...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-heroku/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-heroku/tests/__init__.py
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-heroku/examples/basic_usage.py
llama-index-integrations/embeddings/llama-index-embeddings-heroku/examples/basic_usage.py
"""Basic usage example for Heroku embeddings.""" import os from llama_index.embeddings.heroku import HerokuEmbedding def main(): """Demonstrate basic usage of Heroku embeddings.""" # Initialize the embedding model. This assumes the presence of EMBEDDING_MODEL_ID, # EMBEDDING_KEY, and EMBEDDING_URL in th...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-heroku/examples/async_usage.py
llama-index-integrations/embeddings/llama-index-embeddings-heroku/examples/async_usage.py
"""Async usage example for Heroku embeddings.""" import asyncio import os from llama_index.embeddings.heroku import HerokuEmbedding async def main(): """Demonstrate async usage of Heroku embeddings.""" # Initialize the embedding model. This assumes the presence of EMBEDDING_MODEL_ID, # EMBEDDING_KEY, an...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-heroku/llama_index/embeddings/heroku/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-heroku/llama_index/embeddings/heroku/__init__.py
from llama_index.embeddings.heroku.base import HerokuEmbedding __all__ = ["HerokuEmbedding"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/embeddings/llama-index-embeddings-heroku/llama_index/embeddings/heroku/base.py
llama-index-integrations/embeddings/llama-index-embeddings-heroku/llama_index/embeddings/heroku/base.py
"""Heroku embeddings file.""" import logging from typing import Any, Optional import httpx from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, Embedding, ) from llama_index.core.bridge.pydantic import Field, PrivateAttr from llama_index.core.callbacks.base import C...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false