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/graph_stores/llama-index-graph-stores-memgraph/llama_index/graph_stores/memgraph/property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-memgraph/llama_index/graph_stores/memgraph/property_graph.py
from typing import Any, List, Dict, Optional, Tuple import logging import json import ast import neo4j from llama_index.core.graph_stores.prompts import DEFAULT_CYPHER_TEMPALTE from llama_index.core.graph_stores.types import ( PropertyGraphStore, Triplet, LabelledNode, Relation, EntityNode, Chu...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
true
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/graph_stores/llama-index-graph-stores-memgraph/llama_index/graph_stores/memgraph/kg_base.py
llama-index-integrations/graph_stores/llama-index-graph-stores-memgraph/llama_index/graph_stores/memgraph/kg_base.py
"""Memgraph graph store index.""" import logging from typing import Any, Dict, List, Optional from llama_index.core.graph_stores.types import GraphStore logger = logging.getLogger(__name__) node_properties_query = """ CALL schema.node_type_properties() YIELD nodeType AS label, propertyName AS property, propertyType...
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/graph_stores/llama-index-graph-stores-memgraph/llama_index/graph_stores/memgraph/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-memgraph/llama_index/graph_stores/memgraph/__init__.py
from llama_index.graph_stores.memgraph.kg_base import MemgraphGraphStore from llama_index.graph_stores.memgraph.property_graph import MemgraphPropertyGraphStore __all__ = ["MemgraphGraphStore", "MemgraphPropertyGraphStore"]
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/graph_stores/llama-index-graph-stores-neo4j/tests/test_pg_stores_neo4j.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/tests/test_pg_stores_neo4j.py
import os import pytest from llama_index.graph_stores.neo4j import Neo4jPropertyGraphStore from llama_index.core.graph_stores.types import EntityNode, ChunkNode, Relation from llama_index.core.vector_stores.types import VectorStoreQuery neo4j_url = os.environ.get("NEO4J_URI") neo4j_user = os.environ.get("NEO4J_USERN...
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/graph_stores/llama-index-graph-stores-neo4j/tests/test_graph_stores_neo4j.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/tests/test_graph_stores_neo4j.py
import pytest import os from llama_index.core.graph_stores.types import GraphStore from llama_index.graph_stores.neo4j import Neo4jGraphStore neo4j_url = os.environ.get("NEO4J_URI") neo4j_user = os.environ.get("NEO4J_USERNAME") neo4j_password = os.environ.get("NEO4J_PASSWORD") if not neo4j_url or not neo4j_user or n...
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/graph_stores/llama-index-graph-stores-neo4j/tests/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/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/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/neo4j_property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/neo4j_property_graph.py
from typing import Any, List, Dict, Optional, Tuple, Type from types import TracebackType from llama_index.core.graph_stores.prompts import DEFAULT_CYPHER_TEMPALTE from llama_index.core.graph_stores.types import ( PropertyGraphStore, Triplet, LabelledNode, Relation, EntityNode, ChunkNode, ) fro...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
true
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/cypher_corrector.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/cypher_corrector.py
import re from typing import Any, Dict, List, Optional, Tuple, NamedTuple class Schema(NamedTuple): left_node: str relation: str right_node: str class CypherQueryCorrector: """ Used to correct relationship direction in generated Cypher statements. This code is copied from the winner's submi...
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/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/__init__.py
from llama_index.graph_stores.neo4j.base import Neo4jGraphStore from llama_index.graph_stores.neo4j.cypher_corrector import Schema, CypherQueryCorrector from llama_index.graph_stores.neo4j.neo4j_property_graph import ( Neo4jPGStore, Neo4jPropertyGraphStore, ) __all__ = [ "Neo4jGraphStore", "Neo4jPGSto...
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/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/base.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/base.py
"""Neo4j graph store index.""" import logging from typing import Any, Dict, List, Optional, Type from types import TracebackType from llama_index.core.graph_stores.types import GraphStore import neo4j logger = logging.getLogger(__name__) node_properties_query = """ CALL apoc.meta.data() YIELD label, other, element...
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/graph_stores/llama-index-graph-stores-tidb/tests/test_graph_stores_tidb.py
llama-index-integrations/graph_stores/llama-index-graph-stores-tidb/tests/test_graph_stores_tidb.py
from llama_index.core.graph_stores.types import GraphStore from llama_index.graph_stores.tidb import TiDBGraphStore def test_tidb_graph_store(): names_of_bases = [b.__name__ for b in TiDBGraphStore.__bases__] assert GraphStore.__name__ in names_of_bases
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/graph_stores/llama-index-graph-stores-tidb/tests/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-tidb/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/graph_stores/llama-index-graph-stores-tidb/tests/test_property_graph_stores_tidb.py
llama-index-integrations/graph_stores/llama-index-graph-stores-tidb/tests/test_property_graph_stores_tidb.py
import os from unittest import TestCase, SkipTest from llama_index.core.graph_stores.types import ( EntityNode, Relation, ) from llama_index.graph_stores.tidb import TiDBPropertyGraphStore def get_store(): return TiDBPropertyGraphStore( db_connection_string=os.environ.get("TIDB_TEST_CONNECTION_S...
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/graph_stores/llama-index-graph-stores-tidb/llama_index/graph_stores/tidb/graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-tidb/llama_index/graph_stores/tidb/graph.py
"""TiDB graph store index.""" from typing import Tuple, Any, List, Optional, Dict from collections import defaultdict from sqlalchemy import ( create_engine, Column, Integer, String, DateTime, ForeignKey, Text, sql, delete, ) from sqlalchemy.orm import ( Session, declarative...
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/graph_stores/llama-index-graph-stores-tidb/llama_index/graph_stores/tidb/property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-tidb/llama_index/graph_stores/tidb/property_graph.py
"""TiDB property graph store index.""" import json from typing import Tuple, Optional, List, Dict, Any from sqlalchemy import ( create_engine, Column, Integer, String, DateTime, JSON, TEXT, ForeignKey, sql, delete, ) from sqlalchemy.orm import ( Session, declarative_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/graph_stores/llama-index-graph-stores-tidb/llama_index/graph_stores/tidb/utils.py
llama-index-integrations/graph_stores/llama-index-graph-stores-tidb/llama_index/graph_stores/tidb/utils.py
from sqlalchemy.orm import Session from sqlalchemy import Engine, exc, sql def check_db_availability(engine: Engine, check_vector: bool = False) -> None: try: with engine.connect() as conn: if check_vector: conn.execute(sql.text("""SELECT Vec_Dims("[1]");""")) else:...
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/graph_stores/llama-index-graph-stores-tidb/llama_index/graph_stores/tidb/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-tidb/llama_index/graph_stores/tidb/__init__.py
from llama_index.graph_stores.tidb.graph import TiDBGraphStore from llama_index.graph_stores.tidb.property_graph import TiDBPropertyGraphStore __all__ = ["TiDBGraphStore", "TiDBPropertyGraphStore"]
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/graph_stores/llama-index-graph-stores-neptune/tests/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/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/graph_stores/llama-index-graph-stores-neptune/tests/test_graph_stores_neptune.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/tests/test_graph_stores_neptune.py
from llama_index.core.graph_stores.types import GraphStore from llama_index.graph_stores.neptune import ( NeptuneAnalyticsGraphStore, NeptuneDatabaseGraphStore, ) from llama_index.graph_stores.neptune.base import NeptuneBaseGraphStore def test_neptune_analytics_graph_store(): names_of_bases = [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/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/database_property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/database_property_graph.py
import json import logging from typing import Any, Dict, Tuple, List, Optional from .neptune import NeptuneQueryException, create_neptune_database_client from .base_property_graph import ( NeptuneBasePropertyGraph, BASE_ENTITY_LABEL, BASE_NODE_LABEL, ) from llama_index.core.vector_stores.types import Vecto...
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/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/neptune.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/neptune.py
from typing import Union, Dict, Any, List import boto3 from botocore import UNSIGNED from botocore.config import Config from dateutil import parser class NeptuneQueryException(Exception): """Exception for the Neptune queries.""" def __init__(self, exception: Union[str, Dict]): if isinstance(exception...
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/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/base_property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/base_property_graph.py
from abc import abstractmethod import logging from llama_index.core.prompts import PromptTemplate from llama_index.core.graph_stores.prompts import DEFAULT_CYPHER_TEMPALTE from typing import Any, Dict, List, Tuple, Optional from llama_index.core.graph_stores.types import ( LabelledNode, PropertyGraphStore, ...
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/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/analytics.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/analytics.py
"""Amazon Neptune Analytics graph store index.""" import json import logging from .neptune import create_neptune_analytics_client from typing import Any, Dict, Optional from .base import NeptuneBaseGraphStore from .neptune import NeptuneQueryException logger = logging.getLogger(__name__) class NeptuneAnalyticsGraph...
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/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/database.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/database.py
"""Amazon Neptune Database graph store index.""" import logging from typing import Any, Dict, Optional from .neptune import create_neptune_database_client from .base import NeptuneBaseGraphStore from .neptune import NeptuneQueryException import json logger = logging.getLogger(__name__) class NeptuneDatabaseGraphSto...
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/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/__init__.py
from llama_index.graph_stores.neptune.analytics import NeptuneAnalyticsGraphStore from llama_index.graph_stores.neptune.database import NeptuneDatabaseGraphStore from llama_index.graph_stores.neptune.analytics_property_graph import ( NeptuneAnalyticsPropertyGraphStore, ) from llama_index.graph_stores.neptune.databa...
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/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/base.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/base.py
from abc import abstractmethod import logging from typing import Any, Dict, List, Optional from llama_index.core.graph_stores.types import GraphStore from .neptune import refresh_schema logger = logging.getLogger(__name__) class NeptuneBaseGraphStore(GraphStore): """ This is an abstract base class that repre...
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/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/analytics_property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/analytics_property_graph.py
import json import logging from typing import Any, Dict, Tuple, List, Optional from .neptune import ( NeptuneQueryException, remove_empty_values, create_neptune_analytics_client, ) from .base_property_graph import ( NeptuneBasePropertyGraph, BASE_ENTITY_LABEL, BASE_NODE_LABEL, ) 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/graph_stores/llama-index-graph-stores-ApertureDB/tests/test_pg_stores_ApertureDB.py
llama-index-integrations/graph_stores/llama-index-graph-stores-ApertureDB/tests/test_pg_stores_ApertureDB.py
import aperturedb.CommonLibrary from llama_index.core.graph_stores.types import Relation, EntityNode from llama_index.graph_stores.ApertureDB import ApertureDBGraphStore import aperturedb import json import pytest @pytest.fixture def create_store(monkeypatch): class MockConnector: def __init__(self, ex...
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/graph_stores/llama-index-graph-stores-ApertureDB/llama_index/graph_stores/ApertureDB/property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-ApertureDB/llama_index/graph_stores/ApertureDB/property_graph.py
import logging from typing import Any, Dict, List, Optional from llama_index.core.graph_stores.types import ( LabelledNode, PropertyGraphStore, EntityNode, Relation, ChunkNode, Triplet, ) query_executor = None query_builder = None # Prefix for properties that are in the client metadata PROPERTY...
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/graph_stores/llama-index-graph-stores-ApertureDB/llama_index/graph_stores/ApertureDB/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-ApertureDB/llama_index/graph_stores/ApertureDB/__init__.py
from llama_index.graph_stores.ApertureDB.property_graph import ApertureDBGraphStore __all__ = ["ApertureDBGraphStore"]
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/question_gen/llama-index-question-gen-guidance/tests/test_question_gen_guidance_generator.py
llama-index-integrations/question_gen/llama-index-question-gen-guidance/tests/test_question_gen_guidance_generator.py
from llama_index.core.question_gen.types import BaseQuestionGenerator from llama_index.question_gen.guidance import GuidanceQuestionGenerator def test_class(): names_of_base_classes = [b.__name__ for b in GuidanceQuestionGenerator.__mro__] assert BaseQuestionGenerator.__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/question_gen/llama-index-question-gen-guidance/tests/__init__.py
llama-index-integrations/question_gen/llama-index-question-gen-guidance/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/question_gen/llama-index-question-gen-guidance/llama_index/question_gen/guidance/__init__.py
llama-index-integrations/question_gen/llama-index-question-gen-guidance/llama_index/question_gen/guidance/__init__.py
from llama_index.question_gen.guidance.base import GuidanceQuestionGenerator __all__ = ["GuidanceQuestionGenerator"]
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/question_gen/llama-index-question-gen-guidance/llama_index/question_gen/guidance/base.py
llama-index-integrations/question_gen/llama-index-question-gen-guidance/llama_index/question_gen/guidance/base.py
from typing import TYPE_CHECKING, List, Optional, Sequence, cast from llama_index.core.prompts.guidance_utils import convert_to_handlebars from llama_index.core.prompts.mixin import PromptDictType from llama_index.core.question_gen.prompts import ( DEFAULT_SUB_QUESTION_PROMPT_TMPL, build_tools_text, ) 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/output_parsers/llama-index-output-parsers-guardrails/tests/test_output_parsers_guardrails.py
llama-index-integrations/output_parsers/llama-index-output-parsers-guardrails/tests/test_output_parsers_guardrails.py
from llama_index.core.output_parsers import BaseOutputParser from llama_index.output_parsers.guardrails import GuardrailsOutputParser def test_class(): names_of_base_classes = [b.__name__ for b in GuardrailsOutputParser.__mro__] assert BaseOutputParser.__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/output_parsers/llama-index-output-parsers-guardrails/tests/__init__.py
llama-index-integrations/output_parsers/llama-index-output-parsers-guardrails/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/output_parsers/llama-index-output-parsers-guardrails/llama_index/output_parsers/guardrails/__init__.py
llama-index-integrations/output_parsers/llama-index-output-parsers-guardrails/llama_index/output_parsers/guardrails/__init__.py
from llama_index.output_parsers.guardrails.base import GuardrailsOutputParser __all__ = ["GuardrailsOutputParser"]
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/output_parsers/llama-index-output-parsers-guardrails/llama_index/output_parsers/guardrails/base.py
llama-index-integrations/output_parsers/llama-index-output-parsers-guardrails/llama_index/output_parsers/guardrails/base.py
""" Guardrails output parser. See https://github.com/ShreyaR/guardrails. """ from copy import deepcopy from typing import Any, Optional from deprecated import deprecated from guardrails import Guard from llama_index.core.output_parsers import BaseOutputParser class GuardrailsOutputParser(BaseOutputParser): "...
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/output_parsers/llama-index-output-parsers-langchain/tests/test_output_parsers_langchain.py
llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/tests/test_output_parsers_langchain.py
from llama_index.core.output_parsers import BaseOutputParser from llama_index.output_parsers.langchain import LangchainOutputParser def test_class(): names_of_base_classes = [b.__name__ for b in LangchainOutputParser.__mro__] assert BaseOutputParser.__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/output_parsers/llama-index-output-parsers-langchain/tests/__init__.py
llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/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/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/__init__.py
llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/__init__.py
from llama_index.output_parsers.langchain.base import LangchainOutputParser __all__ = ["LangchainOutputParser"]
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/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/base.py
llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/base.py
"""Base output parser class.""" from string import Formatter from typing import TYPE_CHECKING, Any, Optional from llama_index.core.output_parsers import BaseOutputParser if TYPE_CHECKING: from llama_index.core.bridge.langchain import BaseOutputParser as LCOutputParser class LangchainOutputParser(BaseOutputPars...
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/evaluation/llama-index-evaluation-tonic-validate/tests/test_evaluation_tonic_validate.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/tests/test_evaluation_tonic_validate.py
from llama_index.core.evaluation.base import BaseEvaluator from llama_index.evaluation.tonic_validate import ( AnswerConsistencyEvaluator, AnswerConsistencyBinaryEvaluator, AnswerSimilarityEvaluator, AugmentationAccuracyEvaluator, AugmentationPrecisionEvaluator, RetrievalPrecisionEvaluator, ...
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/evaluation/llama-index-evaluation-tonic-validate/tests/__init__.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/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/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/augmentation_accuracy.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/augmentation_accuracy.py
from typing import Any, Optional, Sequence from llama_index.core.evaluation.base import BaseEvaluator, EvaluationResult from llama_index.core.prompts.mixin import PromptDictType, PromptMixinType from tonic_validate.metrics.augmentation_accuracy_metric import ( AugmentationAccuracyMetric, ) from tonic_validate.ser...
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/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/answer_consistency_binary.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/answer_consistency_binary.py
from typing import Any, Optional, Sequence from llama_index.core.evaluation.base import BaseEvaluator, EvaluationResult from llama_index.core.prompts.mixin import PromptDictType, PromptMixinType from tonic_validate.metrics.answer_consistency_binary_metric import ( AnswerConsistencyBinaryMetric, ) from tonic_valid...
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/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/retrieval_precision.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/retrieval_precision.py
from typing import Any, Optional, Sequence from llama_index.core.evaluation.base import BaseEvaluator, EvaluationResult from llama_index.core.prompts.mixin import PromptDictType, PromptMixinType from tonic_validate.metrics.retrieval_precision_metric import ( RetrievalPrecisionMetric, ) from tonic_validate.service...
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/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/answer_similarity.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/answer_similarity.py
from typing import Any, Optional, Sequence from llama_index.core.evaluation.base import BaseEvaluator, EvaluationResult from llama_index.core.prompts.mixin import PromptDictType, PromptMixinType from tonic_validate.metrics.answer_similarity_metric import ( AnswerSimilarityMetric, ) from tonic_validate.services.op...
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/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/__init__.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/__init__.py
from llama_index.evaluation.tonic_validate.answer_consistency import ( AnswerConsistencyEvaluator, ) from llama_index.evaluation.tonic_validate.answer_consistency_binary import ( AnswerConsistencyBinaryEvaluator, ) from llama_index.evaluation.tonic_validate.answer_similarity import ( AnswerSimilarityEvaluat...
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/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/answer_consistency.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/answer_consistency.py
from typing import Any, Optional, Sequence from llama_index.core.evaluation.base import BaseEvaluator, EvaluationResult from llama_index.core.prompts.mixin import PromptDictType, PromptMixinType from tonic_validate.metrics.answer_consistency_metric import ( AnswerConsistencyMetric, ) from tonic_validate.services....
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/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/augmentation_precision.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/augmentation_precision.py
from typing import Any, Optional, Sequence from llama_index.core.evaluation.base import BaseEvaluator, EvaluationResult from llama_index.core.prompts.mixin import PromptDictType, PromptMixinType from tonic_validate.metrics.augmentation_precision_metric import ( AugmentationPrecisionMetric, ) from tonic_validate.s...
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/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/tonic_validate_evaluator.py
llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/llama_index/evaluation/tonic_validate/tonic_validate_evaluator.py
import asyncio from typing import Any, Dict, List, Optional, Sequence from llama_index.core.bridge.pydantic import Field from llama_index.core.evaluation.base import BaseEvaluator, EvaluationResult from llama_index.core.prompts.mixin import PromptDictType, PromptMixinType from tonic_validate.metrics.answer_consistenc...
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-nvidia/tests/conftest.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/tests/conftest.py
# pants requires this import to recognize the dep import pytest_asyncio # noqa: F401 import pytest import os from llama_index.embeddings.nvidia import NVIDIAEmbedding as Interface from llama_index.embeddings.nvidia.base import DEFAULT_MODEL from typing import Generator # this fixture is used to mask the NVIDIA_AP...
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-nvidia/tests/test_api_key.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/tests/test_api_key.py
import os import pytest from llama_index.embeddings.nvidia import NVIDIAEmbedding as Interface from typing import Any from pytest_httpx import HTTPXMock @pytest.fixture() def mock_local_models(httpx_mock: HTTPXMock): mock_response = { "data": [ { "id": "model1", ...
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-nvidia/tests/test_embeddings_nvidia.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/tests/test_embeddings_nvidia.py
import pytest import inspect from llama_index.core.callbacks import CallbackManager, LlamaDebugHandler, CBEventType from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.nvidia import NVIDIAEmbedding from openai import AuthenticationError from pytest_httpx import HTTPXMock @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-nvidia/tests/test_base_url.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/tests/test_base_url.py
import pytest from llama_index.embeddings.nvidia import NVIDIAEmbedding as Interface from pytest_httpx import HTTPXMock from requests_mock import Mocker from contextlib import contextmanager import os from typing import Generator, Any @pytest.fixture() def mock_local_models(httpx_mock: HTTPXMock, base_url: str): ...
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-nvidia/tests/test_available_models.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/tests/test_available_models.py
import pytest from llama_index.embeddings.nvidia import NVIDIAEmbedding as Interface @pytest.mark.integration def test_available_models() -> None: models = Interface().available_models assert models assert isinstance(models, list) assert all(isinstance(model.id, str) for model in models)
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-nvidia/tests/test_truncate.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/tests/test_truncate.py
import pytest from unittest.mock import Mock, patch, AsyncMock from llama_index.embeddings.nvidia import NVIDIAEmbedding class MockEmbeddingResponse: """Mock response matching the structure expected by the code.""" def __init__(self): self.data = [Mock(embedding=[1.0, 2.0, 3.0], index=0)] @pytest.f...
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-nvidia/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/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-nvidia/tests/test_integration.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/tests/test_integration.py
import pytest from llama_index.embeddings.nvidia import NVIDIAEmbedding @pytest.mark.integration def test_basic(model: str, mode: dict) -> None: client = NVIDIAEmbedding(model=model, **mode) response = client.get_query_embedding("Hello, world!") assert isinstance(response, list) assert len(response) ...
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-nvidia/llama_index/embeddings/nvidia/utils.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/llama_index/embeddings/nvidia/utils.py
from dataclasses import dataclass from typing import Optional import warnings # integrate.api.nvidia.com is the default url for most models, any # bespoke endpoints will need to be added to the MODEL_ENDPOINT_MAP BASE_URL = "https://integrate.api.nvidia.com/v1" DEFAULT_MODEL = "nvidia/nv-embedqa-e5-v5" @dataclass 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-nvidia/llama_index/embeddings/nvidia/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/llama_index/embeddings/nvidia/__init__.py
from llama_index.embeddings.nvidia.base import NVIDIAEmbedding __all__ = ["NVIDIAEmbedding"]
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-nvidia/llama_index/embeddings/nvidia/base.py
llama-index-integrations/embeddings/llama-index-embeddings-nvidia/llama_index/embeddings/nvidia/base.py
"""NVIDIA embeddings file.""" from typing import Any, List, Literal, Optional import warnings import os 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 Cal...
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-gemini/tests/test_embeddings_gemini.py
llama-index-integrations/embeddings/llama-index-embeddings-gemini/tests/test_embeddings_gemini.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.gemini import GeminiEmbedding def test_embedding_class(): emb = GeminiEmbedding() 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-gemini/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-gemini/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-gemini/llama_index/embeddings/gemini/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-gemini/llama_index/embeddings/gemini/__init__.py
from llama_index.embeddings.gemini.base import GeminiEmbedding __all__ = ["GeminiEmbedding"]
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-gemini/llama_index/embeddings/gemini/base.py
llama-index-integrations/embeddings/llama-index-embeddings-gemini/llama_index/embeddings/gemini/base.py
"""Gemini embeddings file.""" import deprecated import os from typing import Any, Dict, List, Optional import google.generativeai as gemini from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, ) from llama_index.core.bridge.pydantic import Field, PrivateAttr 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-fastembed/tests/test_embeddings_fastembed.py
llama-index-integrations/embeddings/llama-index-embeddings-fastembed/tests/test_embeddings_fastembed.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.fastembed import FastEmbedEmbedding from pathlib import Path from unittest.mock import patch def test_class(): names_of_base_classes = [b.__name__ for b in FastEmbedEmbedding.__mro__] assert BaseEmbedding.__name__ in n...
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-fastembed/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-fastembed/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-fastembed/llama_index/embeddings/fastembed/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-fastembed/llama_index/embeddings/fastembed/__init__.py
from llama_index.embeddings.fastembed.base import FastEmbedEmbedding __all__ = ["FastEmbedEmbedding"]
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-fastembed/llama_index/embeddings/fastembed/base.py
llama-index-integrations/embeddings/llama-index-embeddings-fastembed/llama_index/embeddings/fastembed/base.py
import asyncio import numpy as np from typing import Any, List, Literal, Optional, TYPE_CHECKING from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.bridge.pydantic import Field, PrivateAttr, ConfigDict if TYPE_CHECKING: from fastembed import TextEmbedding class FastEmbedEmbedd...
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-gigachat/tests/test_embeddings_gigachat.py
llama-index-integrations/embeddings/llama-index-embeddings-gigachat/tests/test_embeddings_gigachat.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.gigachat import GigaChatEmbedding def test_embedding_function(): names_of_base_classes = [b.__name__ for b in GigaChatEmbedding.__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-gigachat/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-gigachat/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-gigachat/llama_index/embeddings/gigachat/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-gigachat/llama_index/embeddings/gigachat/__init__.py
from llama_index.embeddings.gigachat.base import GigaChatEmbedding __all__ = ["GigaChatEmbedding"]
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-gigachat/llama_index/embeddings/gigachat/base.py
llama-index-integrations/embeddings/llama-index-embeddings-gigachat/llama_index/embeddings/gigachat/base.py
from typing import Any, List, Optional from gigachat import GigaChat # Install GigaChat API library via 'pip install gigachat' from llama_index.core.base.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, ) from llama_index.core.base.llms.generic_utils import get_from_param_or_env 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-deepinfra/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-deepinfra/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-deepinfra/tests/test_embeddings_deepinfra.py
llama-index-integrations/embeddings/llama-index-embeddings-deepinfra/tests/test_embeddings_deepinfra.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.deepinfra import DeepInfraEmbeddingModel def test_deepinfra_embedding_class(): model = DeepInfraEmbeddingModel() assert isinstance(model, BaseEmbedding) def test_deepinfra_query_prefix(): model = DeepInfraEmbeddi...
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-deepinfra/llama_index/embeddings/deepinfra/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-deepinfra/llama_index/embeddings/deepinfra/__init__.py
from llama_index.embeddings.deepinfra.base import ( DeepInfraEmbeddingModel, ) __all__ = [ "DeepInfraEmbeddingModel", ]
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-deepinfra/llama_index/embeddings/deepinfra/base.py
llama-index-integrations/embeddings/llama-index-embeddings-deepinfra/llama_index/embeddings/deepinfra/base.py
import logging import os import aiohttp import requests from typing import List, Optional from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.callbacks.base import CallbackManager logger = logging.getLogger(__name__) """DeepI...
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-mixedbreadai/tests/test_embeddings_mixedbreadai.py
llama-index-integrations/embeddings/llama-index-embeddings-mixedbreadai/tests/test_embeddings_mixedbreadai.py
import os import pytest from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.mixedbreadai import ( MixedbreadAIEmbedding, ) def test_embedding_class(): emb = MixedbreadAIEmbedding(api_key="token") assert isinstance(emb, BaseEmbedding) @pytest.mark.skipif( os.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-mixedbreadai/tests/conftest.py
llama-index-integrations/embeddings/llama-index-embeddings-mixedbreadai/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-mixedbreadai/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-mixedbreadai/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-mixedbreadai/llama_index/embeddings/mixedbreadai/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-mixedbreadai/llama_index/embeddings/mixedbreadai/__init__.py
from llama_index.embeddings.mixedbreadai.base import ( MixedbreadAIEmbedding, EncodingFormat, ) __all__ = ["MixedbreadAIEmbedding", "EncodingFormat"]
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-mixedbreadai/llama_index/embeddings/mixedbreadai/base.py
llama-index-integrations/embeddings/llama-index-embeddings-mixedbreadai/llama_index/embeddings/mixedbreadai/base.py
import logging import os from typing import Any, List, Optional 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 mixedbread import DEFAULT_MAX_RETRIES, Mixedbread...
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-together/tests/test_embeddings_together.py
llama-index-integrations/embeddings/llama-index-embeddings-together/tests/test_embeddings_together.py
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.together import TogetherEmbedding def test_embedding_class(): emb = TogetherEmbedding(model_name="fake_model_name", api_key="fake key") 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-together/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-together/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-together/llama_index/embeddings/together/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-together/llama_index/embeddings/together/__init__.py
from llama_index.embeddings.together.base import TogetherEmbedding __all__ = ["TogetherEmbedding"]
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-together/llama_index/embeddings/together/base.py
llama-index-integrations/embeddings/llama-index-embeddings-together/llama_index/embeddings/together/base.py
import asyncio import os from typing import Any, List, Optional import time import httpx import requests from llama_index.core.base.embeddings.base import BaseEmbedding, Embedding from llama_index.core.bridge.pydantic import Field class TogetherEmbedding(BaseEmbedding): api_base: str = Field( default="ht...
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-instructor/llama_index/embeddings/instructor/utils.py
llama-index-integrations/embeddings/llama-index-embeddings-instructor/llama_index/embeddings/instructor/utils.py
from typing import Optional DEFAULT_HUGGINGFACE_EMBEDDING_MODEL = "BAAI/bge-small-en" DEFAULT_INSTRUCT_MODEL = "hkunlp/instructor-base" # Originally pulled from: # https://github.com/langchain-ai/langchain/blob/v0.0.257/libs/langchain/langchain/embeddings/huggingface.py#L10 DEFAULT_EMBED_INSTRUCTION = "Represent 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-instructor/llama_index/embeddings/instructor/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-instructor/llama_index/embeddings/instructor/__init__.py
from llama_index.embeddings.instructor.base import InstructorEmbedding __all__ = ["InstructorEmbedding"]
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-instructor/llama_index/embeddings/instructor/base.py
llama-index-integrations/embeddings/llama-index-embeddings-instructor/llama_index/embeddings/instructor/base.py
from typing import Any, List, Optional from InstructorEmbedding import INSTRUCTOR 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_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/embeddings/llama-index-embeddings-vertex/tests/test_embeddings_vertex.py
llama-index-integrations/embeddings/llama-index-embeddings-vertex/tests/test_embeddings_vertex.py
import io import unittest from unittest.mock import patch, Mock, MagicMock, AsyncMock from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.embeddings import MultiModalEmbedding from vertexai.language_models import TextEmbedding, TextEmbeddingInput from vertexai.vision_models import Mul...
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-vertex/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-vertex/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-vertex/llama_index/embeddings/vertex/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-vertex/llama_index/embeddings/vertex/__init__.py
from llama_index.embeddings.vertex.base import ( VertexTextEmbedding, VertexMultiModalEmbedding, VertexEmbeddingMode, ) __all__ = ["VertexTextEmbedding", "VertexMultiModalEmbedding", "VertexEmbeddingMode"]
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-vertex/llama_index/embeddings/vertex/base.py
llama-index-integrations/embeddings/llama-index-embeddings-vertex/llama_index/embeddings/vertex/base.py
import deprecated import vertexai from enum import Enum from typing import Optional, List, Any, Dict, Union from google.oauth2 import service_account from llama_index.core.base.embeddings.base import Embedding, BaseEmbedding from llama_index.core.bridge.pydantic import PrivateAttr, Field from llama_index.core.callback...
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-like/tests/test_embeddings_openai_like.py
llama-index-integrations/embeddings/llama-index-embeddings-openai-like/tests/test_embeddings_openai_like.py
import pytest from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.openai_like import OpenAILikeEmbedding def test_openai_embedding_class(): names_of_base_classes = [b.__name__ for b in OpenAILikeEmbedding.__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-openai-like/tests/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-openai-like/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-like/llama_index/embeddings/openai_like/__init__.py
llama-index-integrations/embeddings/llama-index-embeddings-openai-like/llama_index/embeddings/openai_like/__init__.py
from llama_index.embeddings.openai_like.base import ( OpenAILikeEmbedding, ) __all__ = [ "OpenAILikeEmbedding", ]
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-like/llama_index/embeddings/openai_like/base.py
llama-index-integrations/embeddings/llama-index-embeddings-openai-like/llama_index/embeddings/openai_like/base.py
"""OpenAI-Like embeddings.""" from typing import Any, Dict, Optional import httpx from llama_index.core.callbacks.base import CallbackManager from llama_index.embeddings.openai import OpenAIEmbedding class OpenAILikeEmbedding(OpenAIEmbedding): """ OpenAI-Like class for embeddings. Args: model_n...
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/utils.py
llama-index-integrations/embeddings/llama-index-embeddings-fireworks/llama_index/embeddings/fireworks/utils.py
from typing import Optional, Tuple from llama_index.core.base.llms.generic_utils import get_from_param_or_env DEFAULT_FIREWORKS_API_BASE = "https://api.endpoints.fireworks.com/v1" DEFAULT_FIREWORKS_API_VERSION = "" def resolve_fireworks_credentials( api_key: Optional[str] = None, api_base: Optional[str] = N...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false