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/indices/llama-index-indices-managed-colbert/tests/test_indices_managed_colbert.py
llama-index-integrations/indices/llama-index-indices-managed-colbert/tests/test_indices_managed_colbert.py
from llama_index.core.indices.base import BaseIndex from llama_index.indices.managed.colbert import ColbertIndex def test_class(): names_of_base_classes = [b.__name__ for b in ColbertIndex.__mro__] assert BaseIndex.__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/indices/llama-index-indices-managed-colbert/llama_index/indices/managed/colbert/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-colbert/llama_index/indices/managed/colbert/__init__.py
from llama_index.indices.managed.colbert.base import ColbertIndex __all__ = ["ColbertIndex"]
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/indices/llama-index-indices-managed-colbert/llama_index/indices/managed/colbert/retriever.py
llama-index-integrations/indices/llama-index-indices-managed-colbert/llama_index/indices/managed/colbert/retriever.py
from typing import Any, Dict, List, Optional from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.callbacks.base import CallbackManager from llama_index.core.constants import DEFAULT_SIMILARITY_TOP_K from llama_index.core.schema import NodeWithScore, QueryBundle from llama_index.core.se...
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/indices/llama-index-indices-managed-colbert/llama_index/indices/managed/colbert/base.py
llama-index-integrations/indices/llama-index-indices-managed-colbert/llama_index/indices/managed/colbert/base.py
import os import shutil from pathlib import Path from typing import Any, Dict, List, Optional, Sequence from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.data_structs.data_structs import IndexDict from llama_index.core.indices.base import BaseIndex, IndexNode from llama_index.core.sc...
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/indices/llama-index-indices-managed-postgresml/tests/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-postgresml/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/indices/llama-index-indices-managed-postgresml/tests/test_indices_managed_postgresml.py
llama-index-integrations/indices/llama-index-indices-managed-postgresml/tests/test_indices_managed_postgresml.py
from llama_index.core.indices.managed.base import BaseManagedIndex from llama_index.core.base.base_retriever import BaseRetriever from llama_index.indices.managed.postgresml import PostgresMLIndex from llama_index.indices.managed.postgresml import PostgresMLRetriever def test_class(): names_of_base_classes = [b._...
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/indices/llama-index-indices-managed-postgresml/llama_index/indices/managed/postgresml/query.py
llama-index-integrations/indices/llama-index-indices-managed-postgresml/llama_index/indices/managed/postgresml/query.py
from typing import Any, Optional, Dict, Generator, AsyncGenerator from copy import deepcopy from llama_index.core.async_utils import run_async_tasks from llama_index.core.base.base_query_engine import BaseQueryEngine from llama_index.core.base.response.schema import ( RESPONSE_TYPE, Response, AsyncStreaming...
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/indices/llama-index-indices-managed-postgresml/llama_index/indices/managed/postgresml/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-postgresml/llama_index/indices/managed/postgresml/__init__.py
from llama_index.indices.managed.postgresml.base import PostgresMLIndex from llama_index.indices.managed.postgresml.retriever import PostgresMLRetriever __all__ = ["PostgresMLIndex", "PostgresMLRetriever"]
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/indices/llama-index-indices-managed-postgresml/llama_index/indices/managed/postgresml/retriever.py
llama-index-integrations/indices/llama-index-indices-managed-postgresml/llama_index/indices/managed/postgresml/retriever.py
""" PostgresML index. An index that is built on top of PostgresML. """ import logging from typing import Any, List, Optional, Dict from llama_index.core.async_utils import run_async_tasks from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.callbacks.base import CallbackManager from ll...
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/indices/llama-index-indices-managed-postgresml/llama_index/indices/managed/postgresml/base.py
llama-index-integrations/indices/llama-index-indices-managed-postgresml/llama_index/indices/managed/postgresml/base.py
""" Managed index. A managed Index - where the index is accessible via some API that interfaces a managed service. """ import logging from llama_index.core.async_utils import run_async_tasks from typing import Any, Dict, Optional, Sequence, Type from llama_index.core.base.base_query_engine import BaseQueryEngine 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/indices/llama-index-indices-managed-dashscope/tests/test_indices_managed_dashscope.py
llama-index-integrations/indices/llama-index-indices-managed-dashscope/tests/test_indices_managed_dashscope.py
from llama_index.indices.managed.dashscope import DashScopeCloudIndex from llama_index.core.indices.managed.base import BaseManagedIndex def test_class(): names_of_base_classes = [b.__name__ for b in DashScopeCloudIndex.__mro__] assert BaseManagedIndex.__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/indices/llama-index-indices-managed-dashscope/tests/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-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/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/constants.py
llama-index-integrations/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/constants.py
DASHSCOPE_DEFAULT_BASE_URL = "https://dashscope.aliyuncs.com" UPSERT_PIPELINE_ENDPOINT = "/api/v1/indices/pipeline" START_PIPELINE_ENDPOINT = "/api/v1/indices/pipeline/{pipeline_id}/managed_ingest" CHECK_INGESTION_ENDPOINT = ( "/api/v1/indices/pipeline/{pipeline_id}/managed_ingest/{ingestion_id}/status" ) RETRIEVE_...
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/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/utils.py
llama-index-integrations/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/utils.py
import requests import time def post(base_url: str, headers: dict, params: dict): response = requests.post(base_url, headers=headers, json=params) if response.status_code != 200: raise RuntimeError(response.text) response_dict = response.json() if response_dict["code"] != "Success": ra...
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/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/transformations.py
llama-index-integrations/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/transformations.py
""" This module maintains the list of transformations that are supported by dashscope. """ from enum import Enum from typing import Generic, TypeVar from llama_index.core.bridge.pydantic import ( Field, BaseModel, ValidationError, ) from llama_index.core.schema import BaseComponent from llama_index.core....
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/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/__init__.py
from llama_index.indices.managed.dashscope.base import DashScopeCloudIndex from llama_index.indices.managed.dashscope.retriever import DashScopeCloudRetriever __all__ = ["DashScopeCloudIndex", "DashScopeCloudRetriever"]
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/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/retriever.py
llama-index-integrations/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/retriever.py
import logging from typing import List, Dict, Optional import os from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.callbacks.base import CallbackManager from llama_index.core.callbacks.schema import CBEventType, EventPayload from llama_index.core.schema import NodeWithScore, QueryBun...
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/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/base.py
llama-index-integrations/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/base.py
""" Managed index. A managed Index - where the index is accessible via some API that interfaces a managed service. """ import os from typing import Any, List, Optional, Type, Union from enum import Enum import requests import json from llama_index.core.base.base_query_engine import BaseQueryEngine from llama_index....
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/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/api_utils.py
llama-index-integrations/indices/llama-index-indices-managed-dashscope/llama_index/indices/managed/dashscope/api_utils.py
import json from typing import List, Optional from llama_index.indices.managed.dashscope.transformations import ( DashScopeConfiguredTransformation, ) from llama_index.core.schema import BaseNode, TransformComponent def default_transformations() -> List[TransformComponent]: """Default transformations.""" ...
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/indices/llama-index-indices-managed-vertexai/tests/test_indices_managed_vertexai.py
llama-index-integrations/indices/llama-index-indices-managed-vertexai/tests/test_indices_managed_vertexai.py
from llama_index.core.indices.managed.base import BaseManagedIndex from llama_index.core.base.base_retriever import BaseRetriever from llama_index.indices.managed.vertexai import VertexAIIndex from llama_index.indices.managed.vertexai import VertexAIRetriever def test_class(): names_of_base_classes = [b.__name__ ...
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/indices/llama-index-indices-managed-vertexai/tests/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-vertexai/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/indices/llama-index-indices-managed-vertexai/llama_index/indices/managed/vertexai/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-vertexai/llama_index/indices/managed/vertexai/__init__.py
from llama_index.indices.managed.vertexai.base import VertexAIIndex from llama_index.indices.managed.vertexai.retriever import VertexAIRetriever __all__ = ["VertexAIIndex", "VertexAIRetriever"]
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/indices/llama-index-indices-managed-vertexai/llama_index/indices/managed/vertexai/retriever.py
llama-index-integrations/indices/llama-index-indices-managed-vertexai/llama_index/indices/managed/vertexai/retriever.py
from typing import Any, List, Optional from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.schema import NodeWithScore, QueryBundle, TextNode from google.cloud.aiplatform import telemetry from vertexai.preview import rag class VertexAIRetriever(BaseRetriever): def __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/indices/llama-index-indices-managed-vertexai/llama_index/indices/managed/vertexai/base.py
llama-index-integrations/indices/llama-index-indices-managed-vertexai/llama_index/indices/managed/vertexai/base.py
""" Vertex AI Managed index. A managed Index - where the index is accessible via some API that interfaces a managed service. """ import re from importlib import metadata from typing import Any, Optional, Sequence from google.cloud.aiplatform_v1beta1 import ImportRagFilesResponse from google.cloud.aiplatform import ...
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/indices/llama-index-indices-managed-bge-m3/llama_index/indices/managed/bge_m3/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-bge-m3/llama_index/indices/managed/bge_m3/__init__.py
from llama_index.indices.managed.bge_m3.base import BGEM3Index __all__ = ["BGEM3Index"]
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/indices/llama-index-indices-managed-bge-m3/llama_index/indices/managed/bge_m3/retriever.py
llama-index-integrations/indices/llama-index-indices-managed-bge-m3/llama_index/indices/managed/bge_m3/retriever.py
from typing import Any, Dict, List, Optional from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.callbacks.base import CallbackManager from llama_index.core.constants import DEFAULT_SIMILARITY_TOP_K from llama_index.core.schema import NodeWithScore, QueryBundle from llama_index.core.se...
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/indices/llama-index-indices-managed-bge-m3/llama_index/indices/managed/bge_m3/base.py
llama-index-integrations/indices/llama-index-indices-managed-bge-m3/llama_index/indices/managed/bge_m3/base.py
import os import shutil import pickle import numpy as np from pathlib import Path from typing import Any, Dict, List, Optional, Sequence from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.data_structs.data_structs import IndexDict from llama_index.core.indices.base import BaseIndex, I...
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/indices/llama-index-indices-managed-lancedb/tests/test_index.py
llama-index-integrations/indices/llama-index-indices-managed-lancedb/tests/test_index.py
import pytest import shutil import os import requests import uuid from lancedb import AsyncConnection, DBConnection from lancedb.table import AsyncTable, Table from typing import Generator import pandas as pd from llama_index.indices.managed.lancedb.retriever import LanceDBRetriever from llama_index.indices.managed.la...
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/indices/llama-index-indices-managed-lancedb/tests/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-lancedb/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/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/utils.py
llama-index-integrations/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/utils.py
from lancedb.embeddings import get_registry, EmbeddingFunction from lancedb.table import Table, AsyncTable from lancedb.index import IvfPq, IvfFlat, HnswPq, HnswSq, BTree, Bitmap, LabelList, FTS import httpx from PIL import Image import io import os from llama_index.core.bridge.pydantic import BaseModel, Field, model_...
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/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/__init__.py
from llama_index.indices.managed.lancedb.base import LanceDBMultiModalIndex from llama_index.indices.managed.lancedb.query_engine import LanceDBRetrieverQueryEngine from llama_index.indices.managed.lancedb.retriever import LanceDBRetriever __all__ = ["LanceDBMultiModalIndex", "LanceDBRetrieverQueryEngine", "LanceDBRet...
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/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/retriever.py
llama-index-integrations/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/retriever.py
import os from lancedb.table import Table, AsyncTable from PIL import Image from dataclasses import dataclass from .utils import query_multimodal, query_text, aquery_multimodal, aquery_text from llama_index.core.llms import ImageBlock from llama_index.core.schema import ImageDocument from llama_index.core.retrievers i...
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/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/base.py
llama-index-integrations/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/base.py
import lancedb import json import polars as pl import pandas as pd import pyarrow as pa import warnings import httpx from lancedb.pydantic import LanceModel, Vector from pydantic import Field from lancedb import DBConnection, AsyncConnection from lancedb.table import Table, AsyncTable from lancedb.rerankers import Rer...
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/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/query_engine.py
llama-index-integrations/indices/llama-index-indices-managed-lancedb/llama_index/indices/managed/lancedb/query_engine.py
import os from PIL import Image from llama_index.core.query_engine.retriever_query_engine import ( RetrieverQueryEngine, ) from llama_index.core.response_synthesizers import BaseSynthesizer from llama_index.core.postprocessor.types import BaseNodePostprocessor from llama_index.core.callbacks.schema import CBEvent...
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/indices/llama-index-indices-managed-vectara/tests/test_indices_managed_vectara.py
llama-index-integrations/indices/llama-index-indices-managed-vectara/tests/test_indices_managed_vectara.py
from typing import List from llama_index.core.schema import Document, Node, MediaResource from llama_index.core.indices.managed.base import BaseManagedIndex from llama_index.indices.managed.vectara import VectaraIndex import pytest import re # # For this test to run properly, please setup as follows: # 1. Create a Vec...
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/indices/llama-index-indices-managed-vectara/tests/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-vectara/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/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/prompts.py
llama-index-integrations/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/prompts.py
"""Autoretriever prompts.""" from llama_index.core.prompts.base import PromptTemplate from llama_index.core.prompts.prompt_type import PromptType from llama_index.core.vector_stores.types import ( FilterOperator, MetadataFilter, MetadataInfo, VectorStoreInfo, VectorStoreQuerySpec, ) # NOTE: these ...
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/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/query.py
llama-index-integrations/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/query.py
from typing import Any, List, Dict, Optional from llama_index.core.base.base_query_engine import BaseQueryEngine from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.callbacks.base import CallbackManager from llama_index.core.callbacks.schema import CBEventType, EventPayload 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/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/__init__.py
from llama_index.indices.managed.vectara.base import VectaraIndex from llama_index.indices.managed.vectara.retriever import ( VectaraAutoRetriever, VectaraRetriever, ) from llama_index.indices.managed.vectara.query import VectaraQueryEngine __all__ = [ "VectaraIndex", "VectaraRetriever", "VectaraAu...
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/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/retriever.py
llama-index-integrations/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/retriever.py
""" Vectara index. An index that is built on top of Vectara. """ import json import logging from typing import Any, List, Optional, Tuple, Dict, Callable, Union from enum import Enum from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.callbacks.base import CallbackManager from llama_i...
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/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/base.py
llama-index-integrations/indices/llama-index-indices-managed-vectara/llama_index/indices/managed/vectara/base.py
""" Managed index. A managed Index - where the index is accessible via some API that interfaces a managed service. """ import json import logging import os from concurrent.futures import ThreadPoolExecutor from typing import Any, List, Optional, Sequence, Type, Dict from functools import lru_cache import requests 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/indices/llama-index-indices-managed-google/tests/test_indices_managed_google.py
llama-index-integrations/indices/llama-index-indices-managed-google/tests/test_indices_managed_google.py
from llama_index.core.indices.managed.base import BaseManagedIndex from llama_index.indices.managed.google import GoogleIndex def test_class(): names_of_base_classes = [b.__name__ for b in GoogleIndex.__mro__] assert BaseManagedIndex.__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/indices/llama-index-indices-managed-google/tests/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-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/indices/llama-index-indices-managed-google/llama_index/indices/managed/google/__init__.py
llama-index-integrations/indices/llama-index-indices-managed-google/llama_index/indices/managed/google/__init__.py
from llama_index.indices.managed.google.base import GoogleIndex __all__ = ["GoogleIndex"]
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/indices/llama-index-indices-managed-google/llama_index/indices/managed/google/base.py
llama-index-integrations/indices/llama-index-indices-managed-google/llama_index/indices/managed/google/base.py
""" Google GenerativeAI Semantic Vector Store & Attributed Question and Answering. Google Generative AI Semantic Retriever API is a managed end to end service that allows developers to create a corpus of documents to perform semantic search on related passages given a user query. Google Generative AI Attributed Quest...
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/memory/llama-index-memory-bedrock-agentcore/tests/__init__.py
llama-index-integrations/memory/llama-index-memory-bedrock-agentcore/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/memory/llama-index-memory-bedrock-agentcore/tests/test_agentcore_memory.py
llama-index-integrations/memory/llama-index-memory-bedrock-agentcore/tests/test_agentcore_memory.py
import pytest from unittest.mock import MagicMock, patch import json from llama_index.core.base.llms.types import ChatMessage, MessageRole from llama_index.core.memory.memory import InsertMethod from llama_index.memory.bedrock_agentcore.base import ( AgentCoreMemory, AgentCoreMemoryContext, ) @pytest.fixture...
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/memory/llama-index-memory-bedrock-agentcore/llama_index/memory/bedrock_agentcore/utils.py
llama-index-integrations/memory/llama-index-memory-bedrock-agentcore/llama_index/memory/bedrock_agentcore/utils.py
import logging import json from typing import Any, Dict, List, Optional from llama_index.core.base.llms.types import ChatMessage, MessageRole logger = logging.getLogger(__name__) DEFAULT_INTRO_PREFERENCES = "Below are a set of relevant preferences retrieved from potentially several memory sources:" DEFAULT_OUTRO_PREF...
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/memory/llama-index-memory-bedrock-agentcore/llama_index/memory/bedrock_agentcore/__init__.py
llama-index-integrations/memory/llama-index-memory-bedrock-agentcore/llama_index/memory/bedrock_agentcore/__init__.py
from llama_index.memory.bedrock_agentcore.base import ( AgentCoreMemory, AgentCoreMemoryContext, ) __all__ = ["AgentCoreMemory", "AgentCoreMemoryContext"]
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/memory/llama-index-memory-bedrock-agentcore/llama_index/memory/bedrock_agentcore/base.py
llama-index-integrations/memory/llama-index-memory-bedrock-agentcore/llama_index/memory/bedrock_agentcore/base.py
from datetime import datetime, timezone from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, model_serializer import boto3 from botocore.config import Config from llama_index.core.async_utils import asyncio_run from llama_index.core.memory.memory import InsertMethod 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/memory/llama-index-memory-mem0/tests/test_mem0.py
llama-index-integrations/memory/llama-index-memory-mem0/tests/test_mem0.py
from unittest.mock import patch, MagicMock import json from typing import Optional from llama_index.memory.mem0.base import Mem0Memory, Mem0Context from workflows.context.serializers import JsonSerializer from llama_index.core.memory.chat_memory_buffer import ChatMessage, MessageRole from llama_index.memory.mem0.utils...
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/memory/llama-index-memory-mem0/tests/__init__.py
llama-index-integrations/memory/llama-index-memory-mem0/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/memory/llama-index-memory-mem0/llama_index/memory/mem0/utils.py
llama-index-integrations/memory/llama-index-memory-mem0/llama_index/memory/mem0/utils.py
from typing import Any, Dict, List, Optional from llama_index.core.base.llms.types import ChatMessage, MessageRole DEFAULT_INTRO_PREFERENCES = "Below are a set of relevant preferences retrieved from potentially several memory sources:" DEFAULT_OUTRO_PREFERENCES = "This is the end of the retrieved preferences." def c...
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/memory/llama-index-memory-mem0/llama_index/memory/mem0/__init__.py
llama-index-integrations/memory/llama-index-memory-mem0/llama_index/memory/mem0/__init__.py
from llama_index.memory.mem0.base import Mem0Memory __all__ = ["Mem0Memory"]
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/memory/llama-index-memory-mem0/llama_index/memory/mem0/base.py
llama-index-integrations/memory/llama-index-memory-mem0/llama_index/memory/mem0/base.py
from typing import Dict, List, Optional, Union, Any from llama_index.core.memory import BaseMemory, Memory as LlamaIndexMemory from llama_index.memory.mem0.utils import ( convert_memory_to_system_message, convert_chat_history_to_dict, convert_messages_to_string, ) from mem0 import MemoryClient, Memory from ...
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/observability/llama-index-observability-otel/tests/test_initialization.py
llama-index-integrations/observability/llama-index-observability-otel/tests/test_initialization.py
from llama_index.observability.otel import LlamaIndexOpenTelemetry from llama_index.observability.otel.base import ( Resource, SERVICE_NAME, ConsoleSpanExporter, ) def test_initialization() -> None: instrumentor = LlamaIndexOpenTelemetry() assert instrumentor.service_name_or_resource == Resource( ...
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/observability/llama-index-observability-otel/llama_index/observability/otel/utils.py
llama-index-integrations/observability/llama-index-observability-otel/llama_index/observability/otel/utils.py
from collections.abc import Sequence as ABCSequence from typing import Any BASE_TYPES = (int, str, bool, bytes, float) def _is_otel_supported_type(obj: Any) -> bool: # If it's one of the base types if isinstance(obj, BASE_TYPES): return True # If it's a sequence (but not a string or bytes, which...
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/observability/llama-index-observability-otel/llama_index/observability/otel/__init__.py
llama-index-integrations/observability/llama-index-observability-otel/llama_index/observability/otel/__init__.py
from llama_index.observability.otel.base import LlamaIndexOpenTelemetry __all__ = [ "LlamaIndexOpenTelemetry", ]
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/observability/llama-index-observability-otel/llama_index/observability/otel/base.py
llama-index-integrations/observability/llama-index-observability-otel/llama_index/observability/otel/base.py
import inspect from datetime import datetime from opentelemetry import trace, context from opentelemetry.trace import set_span_in_context from opentelemetry.sdk.trace import TracerProvider, _Span from opentelemetry.sdk.resources import SERVICE_NAME, Resource from opentelemetry.sdk.trace.export import ( BatchSpanPro...
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/selectors/llama-index-selectors-notdiamond/llama_index/selectors/notdiamond/__init__.py
llama-index-integrations/selectors/llama-index-selectors-notdiamond/llama_index/selectors/notdiamond/__init__.py
from llama_index.selectors.notdiamond.base import NotDiamondSelector __all__ = ["NotDiamondSelector"]
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/selectors/llama-index-selectors-notdiamond/llama_index/selectors/notdiamond/base.py
llama-index-integrations/selectors/llama-index-selectors-notdiamond/llama_index/selectors/notdiamond/base.py
import logging import os from typing import Sequence from llama_index.core.llms import LLM, MockLLM from llama_index.core.schema import QueryBundle from llama_index.core.tools.types import ToolMetadata from llama_index.core.base.base_selector import SelectorResult from llama_index.core.selectors import LLMSingleSelect...
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/callbacks/llama-index-callbacks-langfuse/llama_index/callbacks/langfuse/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-langfuse/llama_index/callbacks/langfuse/__init__.py
from llama_index.callbacks.langfuse.base import langfuse_callback_handler __all__ = ["langfuse_callback_handler"]
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/callbacks/llama-index-callbacks-langfuse/llama_index/callbacks/langfuse/base.py
llama-index-integrations/callbacks/llama-index-callbacks-langfuse/llama_index/callbacks/langfuse/base.py
from typing import Any from llama_index.core.callbacks.base_handler import BaseCallbackHandler from langfuse.llama_index import LlamaIndexCallbackHandler def langfuse_callback_handler(**eval_params: Any) -> BaseCallbackHandler: return LlamaIndexCallbackHandler( **eval_params, sdk_integration="llama-inde...
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/callbacks/llama-index-callbacks-promptlayer/tests/test_promptlayer_callback.py
llama-index-integrations/callbacks/llama-index-callbacks-promptlayer/tests/test_promptlayer_callback.py
from llama_index.callbacks.promptlayer.base import PromptLayerHandler from llama_index.core.callbacks.base_handler import BaseCallbackHandler def test_handler_callable(): names_of_base_classes = [b.__name__ for b in PromptLayerHandler.__mro__] assert BaseCallbackHandler.__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/callbacks/llama-index-callbacks-promptlayer/tests/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-promptlayer/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/callbacks/llama-index-callbacks-promptlayer/llama_index/callbacks/promptlayer/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-promptlayer/llama_index/callbacks/promptlayer/__init__.py
from llama_index.callbacks.promptlayer.base import PromptLayerHandler __all__ = ["PromptLayerHandler"]
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/callbacks/llama-index-callbacks-promptlayer/llama_index/callbacks/promptlayer/base.py
llama-index-integrations/callbacks/llama-index-callbacks-promptlayer/llama_index/callbacks/promptlayer/base.py
import datetime from typing import Any, Dict, List, Optional, Union, cast from llama_index.core.bridge.pydantic import BaseModel from llama_index.core.callbacks.base_handler import BaseCallbackHandler from llama_index.core.callbacks.schema import CBEventType, EventPayload from llama_index.core.llms import ChatMessage ...
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/callbacks/llama-index-callbacks-argilla/llama_index/callbacks/argilla/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-argilla/llama_index/callbacks/argilla/__init__.py
from llama_index.callbacks.argilla.base import argilla_callback_handler __all__ = ["argilla_callback_handler"]
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/callbacks/llama-index-callbacks-argilla/llama_index/callbacks/argilla/base.py
llama-index-integrations/callbacks/llama-index-callbacks-argilla/llama_index/callbacks/argilla/base.py
from typing import Any from llama_index.core.callbacks.base_handler import BaseCallbackHandler def argilla_callback_handler(**kwargs: Any) -> BaseCallbackHandler: try: # lazy import from argilla_llama_index import ArgillaCallbackHandler except ImportError: raise ImportError("Please 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/callbacks/llama-index-callbacks-honeyhive/llama_index/callbacks/honeyhive/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-honeyhive/llama_index/callbacks/honeyhive/__init__.py
from llama_index.callbacks.honeyhive.base import honeyhive_callback_handler __all__ = ["honeyhive_callback_handler"]
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/callbacks/llama-index-callbacks-honeyhive/llama_index/callbacks/honeyhive/base.py
llama-index-integrations/callbacks/llama-index-callbacks-honeyhive/llama_index/callbacks/honeyhive/base.py
from typing import Any from llama_index.core.callbacks.base_handler import BaseCallbackHandler from honeyhive.utils.llamaindex_tracer import HoneyHiveLlamaIndexTracer def honeyhive_callback_handler(**kwargs: Any) -> BaseCallbackHandler: return HoneyHiveLlamaIndexTracer(**kwargs)
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/callbacks/llama-index-callbacks-openinference/tests/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-openinference/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/callbacks/llama-index-callbacks-openinference/tests/test_openinference_callback.py
llama-index-integrations/callbacks/llama-index-callbacks-openinference/tests/test_openinference_callback.py
from llama_index.callbacks.openinference.base import OpenInferenceCallbackHandler from llama_index.core.callbacks.base_handler import BaseCallbackHandler def test_handler_callable(): names_of_base_classes = [b.__name__ for b in OpenInferenceCallbackHandler.__mro__] assert BaseCallbackHandler.__name__ in names...
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/callbacks/llama-index-callbacks-openinference/llama_index/callbacks/openinference/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-openinference/llama_index/callbacks/openinference/__init__.py
from llama_index.callbacks.openinference.base import OpenInferenceCallbackHandler __all__ = ["OpenInferenceCallbackHandler"]
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/callbacks/llama-index-callbacks-openinference/llama_index/callbacks/openinference/base.py
llama-index-integrations/callbacks/llama-index-callbacks-openinference/llama_index/callbacks/openinference/base.py
""" Callback handler for storing generation data in OpenInference format. OpenInference is an open standard for capturing and storing AI model inferences. It enables production LLMapp servers to seamlessly integrate with LLM observability solutions such as Arize and Phoenix. For more information on the specification, ...
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/callbacks/llama-index-callbacks-opik/examples/opik_example.py
llama-index-integrations/callbacks/llama-index-callbacks-opik/examples/opik_example.py
from llama_index.core import Document, VectorStoreIndex, set_global_handler # You should provide your OPIK API key and Workspace using the following environment variables: # OPIK_API_KEY, OPIK_WORKSPACE set_global_handler( "opik", ) # This example uses OpenAI by default so don't forget to set an OPENAI_API_KEY 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/callbacks/llama-index-callbacks-opik/llama_index/callbacks/opik/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-opik/llama_index/callbacks/opik/__init__.py
from llama_index.callbacks.opik.base import opik_callback_handler __all__ = ["opik_callback_handler"]
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/callbacks/llama-index-callbacks-opik/llama_index/callbacks/opik/base.py
llama-index-integrations/callbacks/llama-index-callbacks-opik/llama_index/callbacks/opik/base.py
from typing import Any from llama_index.core.callbacks.base_handler import BaseCallbackHandler def opik_callback_handler(**eval_params: Any) -> BaseCallbackHandler: try: from opik.integrations.llama_index import LlamaIndexCallbackHandler return LlamaIndexCallbackHandler(**eval_params) excep...
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/callbacks/llama-index-callbacks-aim/llama_index/callbacks/aim/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-aim/llama_index/callbacks/aim/__init__.py
from llama_index.callbacks.aim.base import AimCallback __all__ = ["AimCallback"]
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/callbacks/llama-index-callbacks-aim/llama_index/callbacks/aim/base.py
llama-index-integrations/callbacks/llama-index-callbacks-aim/llama_index/callbacks/aim/base.py
import logging from typing import Any, Dict, List, Optional from llama_index.core.callbacks.base_handler import BaseCallbackHandler from llama_index.core.callbacks.schema import CBEventType, EventPayload from aim import Run, Text # type: ignore[attr-defined] logger = logging.getLogger(__name__) logger.setLevel(logg...
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/callbacks/llama-index-callbacks-wandb/tests/test_wandb_callback.py
llama-index-integrations/callbacks/llama-index-callbacks-wandb/tests/test_wandb_callback.py
from llama_index.callbacks.wandb.base import WandbCallbackHandler from llama_index.core.callbacks.base_handler import BaseCallbackHandler def test_handler_callable(): names_of_base_classes = [b.__name__ for b in WandbCallbackHandler.__mro__] assert BaseCallbackHandler.__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/callbacks/llama-index-callbacks-wandb/tests/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-wandb/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/callbacks/llama-index-callbacks-wandb/llama_index/callbacks/wandb/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-wandb/llama_index/callbacks/wandb/__init__.py
from llama_index.callbacks.wandb.base import WandbCallbackHandler __all__ = ["WandbCallbackHandler"]
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/callbacks/llama-index-callbacks-wandb/llama_index/callbacks/wandb/base.py
llama-index-integrations/callbacks/llama-index-callbacks-wandb/llama_index/callbacks/wandb/base.py
import os import shutil from collections import defaultdict from datetime import datetime from typing import ( TYPE_CHECKING, Any, Callable, Dict, List, Optional, Sequence, Tuple, TypedDict, Union, ) from llama_index.core.callbacks.base_handler import BaseCallbackHandler from ll...
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/callbacks/llama-index-callbacks-arize-phoenix/llama_index/callbacks/arize_phoenix/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-arize-phoenix/llama_index/callbacks/arize_phoenix/__init__.py
from llama_index.callbacks.arize_phoenix.base import arize_phoenix_callback_handler __all__ = ["arize_phoenix_callback_handler"]
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/callbacks/llama-index-callbacks-arize-phoenix/llama_index/callbacks/arize_phoenix/base.py
llama-index-integrations/callbacks/llama-index-callbacks-arize-phoenix/llama_index/callbacks/arize_phoenix/base.py
from typing import Any from llama_index.core.callbacks.base_handler import BaseCallbackHandler def arize_phoenix_callback_handler(**kwargs: Any) -> BaseCallbackHandler: # newer versions of arize, v2.x try: from openinference.instrumentation.llama_index import LlamaIndexInstrumentor from opent...
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/callbacks/llama-index-callbacks-literalai/examples/literalai_example.py
llama-index-integrations/callbacks/llama-index-callbacks-literalai/examples/literalai_example.py
from llama_index.core import Document, VectorStoreIndex, set_global_handler # All configuration arguments are optional. However, if you don't have api_key and url you should # provide their values as environment variables : LITERAL_API_KEY, LITERAL_API_URL set_global_handler( "literalai", # api_key="lsk_xxx", ...
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/callbacks/llama-index-callbacks-literalai/llama_index/callbacks/literalai/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-literalai/llama_index/callbacks/literalai/__init__.py
from llama_index.callbacks.literalai.base import literalai_callback_handler __all__ = ["literalai_callback_handler"]
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/callbacks/llama-index-callbacks-literalai/llama_index/callbacks/literalai/base.py
llama-index-integrations/callbacks/llama-index-callbacks-literalai/llama_index/callbacks/literalai/base.py
import logging from typing import Optional, cast from llama_index.core.callbacks.base_handler import BaseCallbackHandler from llama_index.core.instrumentation import get_dispatcher from llama_index.core.instrumentation.event_handlers import BaseEventHandler from llama_index.core.instrumentation.events import BaseEvent...
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/callbacks/llama-index-callbacks-uptrain/tests/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-uptrain/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/callbacks/llama-index-callbacks-uptrain/tests/test_uptrain_callback.py
llama-index-integrations/callbacks/llama-index-callbacks-uptrain/tests/test_uptrain_callback.py
from llama_index.callbacks.uptrain.base import UpTrainCallbackHandler from llama_index.core.callbacks.base_handler import BaseCallbackHandler def test_handler_callable(): names_of_base_classes = [b.__name__ for b in UpTrainCallbackHandler.__mro__] assert BaseCallbackHandler.__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/callbacks/llama-index-callbacks-uptrain/llama_index/callbacks/uptrain/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-uptrain/llama_index/callbacks/uptrain/__init__.py
from llama_index.callbacks.uptrain.base import UpTrainCallbackHandler __all__ = ["UpTrainCallbackHandler"]
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/callbacks/llama-index-callbacks-uptrain/llama_index/callbacks/uptrain/base.py
llama-index-integrations/callbacks/llama-index-callbacks-uptrain/llama_index/callbacks/uptrain/base.py
from collections import defaultdict from typing import Any, DefaultDict, Dict, List, Literal, Optional, Set import nest_asyncio from llama_index.core.callbacks.base_handler import BaseCallbackHandler from llama_index.core.callbacks.schema import ( CBEvent, CBEventType, ) class UpTrainDataSchema: """UpTr...
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/callbacks/llama-index-callbacks-agentops/llama_index/callbacks/agentops/__init__.py
llama-index-integrations/callbacks/llama-index-callbacks-agentops/llama_index/callbacks/agentops/__init__.py
from llama_index.callbacks.agentops.base import AgentOpsHandler __all__ = ["AgentOpsHandler"]
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/callbacks/llama-index-callbacks-agentops/llama_index/callbacks/agentops/base.py
llama-index-integrations/callbacks/llama-index-callbacks-agentops/llama_index/callbacks/agentops/base.py
import json from inspect import BoundArguments from typing import Any, Dict, List, Optional, Set from agentops import Client as AOClient from agentops import LLMEvent, ToolEvent, ErrorEvent import llama_index.core.instrumentation as instrument from llama_index.core.instrumentation.base_handler import BaseInstrumentat...
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/llms/llama-index-llms-nebius/tests/__init__.py
llama-index-integrations/llms/llama-index-llms-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/llms/llama-index-llms-nebius/tests/test_llms_nebius.py
llama-index-integrations/llms/llama-index-llms-nebius/tests/test_llms_nebius.py
from llama_index.core.base.llms.base import BaseLLM from llama_index.llms.nebius import NebiusLLM def test_llm_class(): names_of_base_classes = [b.__name__ for b in NebiusLLM.__mro__] assert BaseLLM.__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/llms/llama-index-llms-nebius/llama_index/llms/nebius/__init__.py
llama-index-integrations/llms/llama-index-llms-nebius/llama_index/llms/nebius/__init__.py
from llama_index.llms.nebius.base import NebiusLLM __all__ = ["NebiusLLM"]
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/llms/llama-index-llms-nebius/llama_index/llms/nebius/base.py
llama-index-integrations/llms/llama-index-llms-nebius/llama_index/llms/nebius/base.py
import os from typing import Any, Optional from llama_index.llms.openai_like import OpenAILike DEFAULT_API_BASE = "https://api.studio.nebius.ai/v1" class NebiusLLM(OpenAILike): """ Nebius AI Studio LLM class. Examples: `pip install llama-index-llms-nebius` ```python 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/llms/llama-index-llms-alibabacloud-aisearch/tests/test_llms_alibabacloud_aisearch.py
llama-index-integrations/llms/llama-index-llms-alibabacloud-aisearch/tests/test_llms_alibabacloud_aisearch.py
from llama_index.core.base.llms.base import BaseLLM from llama_index.llms.alibabacloud_aisearch import AlibabaCloudAISearchLLM def test_class(): names_of_base_classes = [b.__name__ for b in AlibabaCloudAISearchLLM.__mro__] assert BaseLLM.__name__ in names_of_base_classes
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false