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/vector_stores/llama-index-vector-stores-tablestore/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tablestore/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/vector_stores/llama-index-vector-stores-tablestore/llama_index/vector_stores/tablestore/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tablestore/llama_index/vector_stores/tablestore/__init__.py
from llama_index.vector_stores.tablestore.base import TablestoreVectorStore __all__ = ["TablestoreVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-tablestore/llama_index/vector_stores/tablestore/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tablestore/llama_index/vector_stores/tablestore/base.py
"""Tablestore vector store.""" import json import traceback from logging import getLogger from typing import Any, List, Optional, Dict import tablestore from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import BaseNode, TextNode from llama_index.core.vector_stores.types 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/vector_stores/llama-index-vector-stores-neo4jvector/tests/test_vector_stores_neo4jvector.py
llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/tests/test_vector_stores_neo4jvector.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.neo4jvector import Neo4jVectorStore def test_class(): names_of_base_classes = [b.__name__ for b in Neo4jVectorStore.__mro__] assert BasePydanticVectorStore.__name__ in names_of_base_classes assert "clie...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/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/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/__init__.py
from llama_index.vector_stores.neo4jvector.base import Neo4jVectorStore __all__ = ["Neo4jVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/base.py
from typing import Any, Dict, List, Optional, Tuple import logging import neo4j from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import BaseNode, MetadataMode from llama_index.core.vector_stores.types import ( BasePydanticVectorStore, VectorStoreQuery, VectorStoreQuery...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-tidbvector/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tidbvector/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/vector_stores/llama-index-vector-stores-tidbvector/tests/test_vector_stores_tidbvector.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tidbvector/tests/test_vector_stores_tidbvector.py
"""Test TiDB Vector Search functionality.""" from __future__ import annotations import os from typing import List import pytest try: from tidb_vector.integrations import TiDBVectorClient # noqa VECTOR_TABLE_NAME = "llama_index_vector_test" CONNECTION_STRING = os.getenv("TEST_TiDB_CONNECTION_URL", "") ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-tidbvector/llama_index/vector_stores/tidbvector/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tidbvector/llama_index/vector_stores/tidbvector/__init__.py
from llama_index.vector_stores.tidbvector.base import TiDBVectorStore __all__ = ["TiDBVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-tidbvector/llama_index/vector_stores/tidbvector/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tidbvector/llama_index/vector_stores/tidbvector/base.py
import logging from typing import Any, Dict, List, Optional from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import BaseNode, MetadataMode, TextNode from llama_index.core.vector_stores.types import ( BasePydanticVectorStore, FilterCondition, FilterOperator, Metadata...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-deeplake/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-deeplake/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/vector_stores/llama-index-vector-stores-deeplake/tests/test_vector_stores_deeplake.py
llama-index-integrations/vector_stores/llama-index-vector-stores-deeplake/tests/test_vector_stores_deeplake.py
import os import jwt # noqa import pytest from llama_index.core import Document from llama_index.core.vector_stores.types import ( BasePydanticVectorStore, FilterCondition, FilterOperator, MetadataFilter, MetadataFilters, ) from llama_index.vector_stores.deeplake import DeepLakeVectorStore def t...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-deeplake/llama_index/vector_stores/deeplake/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-deeplake/llama_index/vector_stores/deeplake/__init__.py
from llama_index.vector_stores.deeplake.base import DeepLakeVectorStore __all__ = ["DeepLakeVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-deeplake/llama_index/vector_stores/deeplake/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-deeplake/llama_index/vector_stores/deeplake/base.py
""" DeepLake vector store index. An index that is built within DeepLake. """ import logging import uuid from typing import Any, Callable, Dict, Iterable, List, Optional, Union, cast from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import BaseNode, MetadataMode, TextNode 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/vector_stores/llama-index-vector-stores-neptune/tests/test_vector_stores_neptune.py
llama-index-integrations/vector_stores/llama-index-vector-stores-neptune/tests/test_vector_stores_neptune.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.neptune import NeptuneAnalyticsVectorStore def test_neptune_analytics_vector_store(): names_of_base_classes = [b.__name__ for b in NeptuneAnalyticsVectorStore.__mro__] assert BasePydanticVectorStore.__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/vector_stores/llama-index-vector-stores-neptune/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-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/vector_stores/llama-index-vector-stores-neptune/llama_index/vector_stores/neptune/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-neptune/llama_index/vector_stores/neptune/__init__.py
from llama_index.vector_stores.neptune.base import NeptuneAnalyticsVectorStore __all__ = ["NeptuneAnalyticsVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-neptune/llama_index/vector_stores/neptune/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-neptune/llama_index/vector_stores/neptune/base.py
from typing import Any, Dict, List, Optional import json import logging from typing import Union from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import BaseNode, MetadataMode from llama_index.core.vector_stores.types import ( BasePydanticVectorStore, VectorStoreQuery, ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-duckdb/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-duckdb/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/vector_stores/llama-index-vector-stores-duckdb/tests/test_duckdb.py
llama-index-integrations/vector_stores/llama-index-vector-stores-duckdb/tests/test_duckdb.py
import asyncio import pytest import os from typing import List import importlib.util import duckdb from llama_index.core.schema import NodeRelationship, RelatedNodeInfo, TextNode from llama_index.core.vector_stores.types import VectorStoreQuery, FilterOperator from llama_index.vector_stores.duckdb import DuckDBVectorSt...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-duckdb/llama_index/vector_stores/duckdb/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-duckdb/llama_index/vector_stores/duckdb/__init__.py
from llama_index.vector_stores.duckdb.base import DuckDBVectorStore __all__ = ["DuckDBVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-duckdb/llama_index/vector_stores/duckdb/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-duckdb/llama_index/vector_stores/duckdb/base.py
"""DuckDB vector store.""" import asyncio import json import logging import operator as py_operator import threading from pathlib import Path from typing import Any, Optional from typing_extensions import override import duckdb from duckdb import ( ColumnExpression, ConstantExpression, FunctionExpression,...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-lancedb/tests/test_vector_stores_lancedb.py
llama-index-integrations/vector_stores/llama-index-vector-stores-lancedb/tests/test_vector_stores_lancedb.py
from typing import Any from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.lancedb import LanceDBVectorStore from llama_index.core import VectorStoreIndex from llama_index.vector_stores.lancedb.base import TableNotFoundError, VectorStoreQuery import pytest import pyte...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-lancedb/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-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/vector_stores/llama-index-vector-stores-lancedb/llama_index/vector_stores/lancedb/util.py
llama-index-integrations/vector_stores/llama-index-vector-stores-lancedb/llama_index/vector_stores/lancedb/util.py
from llama_index.core.vector_stores.types import ( FilterOperator, ) sql_operator_mapper = { FilterOperator.EQ: " = ", FilterOperator.GT: " > ", FilterOperator.GTE: " >= ", FilterOperator.LT: " < ", FilterOperator.LTE: " <= ", FilterOperator.TEXT_MATCH: " LIKE ", FilterOperator.NE: " NO...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-lancedb/llama_index/vector_stores/lancedb/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-lancedb/llama_index/vector_stores/lancedb/__init__.py
from llama_index.vector_stores.lancedb.base import LanceDBVectorStore __all__ = ["LanceDBVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-lancedb/llama_index/vector_stores/lancedb/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-lancedb/llama_index/vector_stores/lancedb/base.py
"""LanceDB vector store.""" import os import logging from typing import Any, List, Optional, Union import warnings import lancedb.rerankers import numpy as np from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import ( BaseNode, MetadataMode, NodeRelationship, Relate...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_parameterized_queries.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_parameterized_queries.py
import pytest from google.cloud import bigquery from google.cloud.bigquery import ArrayQueryParameter, ScalarQueryParameter from llama_index.core.vector_stores import MetadataFilter, MetadataFilters from llama_index.vector_stores.bigquery.utils import build_where_clause_and_params from sql_assertions import assert_equ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_vector_stores_bigquery.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_vector_stores_bigquery.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.bigquery import BigQueryVectorStore def test_class(): """It should inherit from BasePydanticVectorStore""" names_of_base_classes = [b.__name__ for b in BigQueryVectorStore.__mro__] assert BasePydanticVe...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_add.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_add.py
import json from llama_index.core.schema import TextNode from llama_index.vector_stores.bigquery import BigQueryVectorStore def test_add_sends_correct_node_data_to_bigquery(vector_store: BigQueryVectorStore): """It should insert nodes into BigQuery and return the corresponding IDs.""" # Given a list of node...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_delete.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_delete.py
from google.cloud import bigquery from llama_index.vector_stores.bigquery import BigQueryVectorStore from sql_assertions import assert_equivalent_sql_statements def test_delete_generates_correct_sql_and_params(vector_store: BigQueryVectorStore): """It should execute a parameterized DELETE query to remove nodes w...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_delete_nodes.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_delete_nodes.py
import pytest from google.cloud import bigquery from llama_index.core.vector_stores import MetadataFilter, MetadataFilters from llama_index.vector_stores.bigquery import BigQueryVectorStore from sql_assertions import assert_equivalent_sql_statements def test_delete_nodes_with_filters_generates_correct_sql_and_params...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/conftest.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/conftest.py
from unittest.mock import MagicMock, patch import pytest from google.cloud import bigquery from llama_index.vector_stores.bigquery import BigQueryVectorStore _RealBigQueryClient = bigquery.Client _RealBigQueryDataset = bigquery.Dataset _RealTable = bigquery.Table @pytest.fixture def mock_bigquery_client(): wit...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/sql_assertions.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/sql_assertions.py
import sqlparse def assert_equivalent_sql_statements(actual_query: str, expected_query: str): def standardize_format(q: str) -> str: """Standardize SQL formatting for more reliable string comparison.""" formatted = sqlparse.format( q, strip_comments=True, reinde...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_vector_search.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_vector_search.py
import json from unittest.mock import MagicMock import pytest from google.cloud import bigquery from llama_index.core.schema import TextNode from llama_index.vector_stores.bigquery import BigQueryVectorStore from llama_index.vector_stores.bigquery.base import DistanceType from llama_index.core.vector_stores.types impo...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_get_nodes.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/tests/test_get_nodes.py
import json from unittest.mock import MagicMock, patch import pytest from google.cloud import bigquery from llama_index.core.schema import TextNode from llama_index.core.vector_stores import MetadataFilter, MetadataFilters from llama_index.vector_stores.bigquery import BigQueryVectorStore from sql_assertions import a...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/llama_index/vector_stores/bigquery/utils.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/llama_index/vector_stores/bigquery/utils.py
from typing import List, Optional, Tuple, Union from google.cloud import bigquery from llama_index.core.vector_stores.types import ( FilterOperator, MetadataFilter, MetadataFilters, ) def build_where_clause_and_params( node_ids: Optional[List[str]] = None, filters: Optional[MetadataFilters] = Non...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/llama_index/vector_stores/bigquery/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/llama_index/vector_stores/bigquery/__init__.py
from llama_index.vector_stores.bigquery.base import BigQueryVectorStore __all__ = ["BigQueryVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/llama_index/vector_stores/bigquery/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-bigquery/llama_index/vector_stores/bigquery/base.py
""" Google BigQuery Vector Search. BigQuery Vector Search is a fully managed feature of BigQuery that enables fast, scalable similarity search over high-dimensional embeddings using approximate nearest neighbor methods. For more information visit: https://cloud.google.com/bigquery/docs/vector-search-intro """ 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/vector_stores/llama-index-vector-stores-tair/tests/test_vector_stores_tair.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tair/tests/test_vector_stores_tair.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.tair import TairVectorStore def test_class(): names_of_base_classes = [b.__name__ for b in TairVectorStore.__mro__] assert BasePydanticVectorStore.__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/vector_stores/llama-index-vector-stores-tair/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tair/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/vector_stores/llama-index-vector-stores-tair/llama_index/vector_stores/tair/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tair/llama_index/vector_stores/tair/__init__.py
from llama_index.vector_stores.tair.base import TairVectorStore __all__ = ["TairVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-tair/llama_index/vector_stores/tair/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-tair/llama_index/vector_stores/tair/base.py
""" Tair Vector store index. An index that is built on top of Alibaba Cloud's Tair database. """ import logging from typing import Any, Dict, List, Optional from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import ( BaseNode, MetadataMode, NodeRelationship, Related...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/tests/test_vector_stores_supabase.py
llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/tests/test_vector_stores_supabase.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.supabase import SupabaseVectorStore def test_class(): names_of_base_classes = [b.__name__ for b in SupabaseVectorStore.__mro__] assert BasePydanticVectorStore.__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/vector_stores/llama-index-vector-stores-supabase/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/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/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/__init__.py
from llama_index.vector_stores.supabase.base import SupabaseVectorStore __all__ = ["SupabaseVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/base.py
import logging import math from collections import defaultdict from typing import Any, List, Optional import vecs from vecs.collection import Collection from llama_index.core.constants import DEFAULT_EMBEDDING_DIM from llama_index.core.schema import BaseNode, TextNode from llama_index.core.bridge.pydantic import Priva...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-jaguar/tests/test_vector_stores_jaguar.py
llama-index-integrations/vector_stores/llama-index-vector-stores-jaguar/tests/test_vector_stores_jaguar.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.jaguar import JaguarVectorStore def test_class(): names_of_base_classes = [b.__name__ for b in JaguarVectorStore.__mro__] assert BasePydanticVectorStore.__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/vector_stores/llama-index-vector-stores-jaguar/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-jaguar/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/vector_stores/llama-index-vector-stores-jaguar/llama_index/vector_stores/jaguar/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-jaguar/llama_index/vector_stores/jaguar/__init__.py
from llama_index.vector_stores.jaguar.base import JaguarVectorStore __all__ = ["JaguarVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-jaguar/llama_index/vector_stores/jaguar/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-jaguar/llama_index/vector_stores/jaguar/base.py
""" Jaguar Vector Store. . A distributed vector database . The ZeroMove feature enables instant horizontal scalability . Multimodal: embeddings, text, images, videos, PDFs, audio, time series, and geospatial . All-masters: allows both parallel reads and writes . Anomaly detection capabilities: anomaly and anomamous . ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/tests/test_azurecosmosmongo.py
llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/tests/test_azurecosmosmongo.py
"""Test Azue CosmosDB MongoDB vCore Vector Search functionality.""" from __future__ import annotations import os from time import sleep from typing import List import pytest try: from pymongo import MongoClient INDEX_NAME = "llamaindex-test-index" NAMESPACE = "llamaindex_test_db.llamaindex_test_collect...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/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/vector_stores/llama-index-vector-stores-azurecosmosmongo/tests/test_vector_stores_azurecosmosmongo.py
llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/tests/test_vector_stores_azurecosmosmongo.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.azurecosmosmongo import AzureCosmosDBMongoDBVectorSearch def test_class(): names_of_base_classes = [ b.__name__ for b in AzureCosmosDBMongoDBVectorSearch.__mro__ ] assert BasePydanticVectorStore...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/llama_index/vector_stores/azurecosmosmongo/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/llama_index/vector_stores/azurecosmosmongo/__init__.py
from llama_index.vector_stores.azurecosmosmongo.base import ( AzureCosmosDBMongoDBVectorSearch, ) __all__ = ["AzureCosmosDBMongoDBVectorSearch"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/llama_index/vector_stores/azurecosmosmongo/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/llama_index/vector_stores/azurecosmosmongo/base.py
""" Azure CosmosDB MongoDB vCore Vector store index. An index that is built on top of an existing vector store. """ import logging import os from typing import Any, Dict, List, Optional, cast import pymongo from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import BaseNode, Metada...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-awadb/tests/test_vector_stores_awadb.py
llama-index-integrations/vector_stores/llama-index-vector-stores-awadb/tests/test_vector_stores_awadb.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.awadb import AwaDBVectorStore def test_class(): names_of_base_classes = [b.__name__ for b in AwaDBVectorStore.__mro__] assert BasePydanticVectorStore.__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/vector_stores/llama-index-vector-stores-awadb/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-awadb/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/vector_stores/llama-index-vector-stores-awadb/llama_index/vector_stores/awadb/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-awadb/llama_index/vector_stores/awadb/__init__.py
from llama_index.vector_stores.awadb.base import AwaDBVectorStore __all__ = ["AwaDBVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-awadb/llama_index/vector_stores/awadb/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-awadb/llama_index/vector_stores/awadb/base.py
""" AwaDB vector store index. An index that is built on top of an existing vector store. """ import logging import uuid from typing import Any, List, Optional, Set from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import BaseNode, MetadataMode, TextNode from llama_index.core.vect...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/tests/test_postgres.py
llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/tests/test_postgres.py
import asyncio from typing import Any, Dict, Generator, List, Union, Optional import pytest from llama_index.core.schema import ( BaseNode, IndexNode, NodeRelationship, RelatedNodeInfo, TextNode, ) from llama_index.core.vector_stores.types import ( ExactMatchFilter, FilterOperator, Meta...
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/vector_stores/llama-index-vector-stores-postgres/tests/conftest.py
llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/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/vector_stores/llama-index-vector-stores-postgres/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/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/vector_stores/llama-index-vector-stores-postgres/tests/test_vector_stores_postgres.py
llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/tests/test_vector_stores_postgres.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.postgres import PGVectorStore def test_class(): names_of_base_classes = [b.__name__ for b in PGVectorStore.__mro__] assert BasePydanticVectorStore.__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/vector_stores/llama-index-vector-stores-postgres/llama_index/vector_stores/postgres/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/llama_index/vector_stores/postgres/__init__.py
from llama_index.vector_stores.postgres.base import PGVectorStore __all__ = ["PGVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/llama_index/vector_stores/postgres/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/llama_index/vector_stores/postgres/base.py
import logging import re from typing import ( Any, Dict, List, NamedTuple, Optional, Type, Union, Set, Tuple, Literal, Callable, ) import asyncpg # noqa import pgvector # noqa from pgvector.sqlalchemy import HALFVEC import psycopg2 # noqa import sqlalchemy import sqlalche...
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/vector_stores/llama-index-vector-stores-awsdocdb/tests/test_docdb.py
llama-index-integrations/vector_stores/llama-index-vector-stores-awsdocdb/tests/test_docdb.py
"""Test AWS DocumentDB Vector Store functionality.""" from __future__ import annotations import os from time import sleep import pytest from pymongo import MongoClient from llama_index.core.schema import NodeRelationship, RelatedNodeInfo, TextNode from llama_index.core.vector_stores.types import VectorStoreQuery 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/vector_stores/llama-index-vector-stores-awsdocdb/llama_index/vector_stores/awsdocdb/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-awsdocdb/llama_index/vector_stores/awsdocdb/__init__.py
from llama_index.vector_stores.awsdocdb.base import AWSDocDbVectorStore __all__ = ["AWSDocDbVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-awsdocdb/llama_index/vector_stores/awsdocdb/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-awsdocdb/llama_index/vector_stores/awsdocdb/base.py
""" AWS Document DB Vector store index. An index that that is built on top of an existing vector store. """ import logging from enum import Enum from typing import Any, Dict, List, Optional, cast import numpy as np from llama_index.core.bridge.pydantic import PrivateAttr from llama_index.core.schema import BaseNode...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/tests/test_objectbox.py
llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/tests/test_objectbox.py
import os import shutil from typing import Sequence import pytest from llama_index.core.schema import BaseNode, TextNode from llama_index.core.vector_stores import VectorStoreQuery from llama_index.vector_stores.objectbox import ObjectBoxVectorStore EMBEDDING_DIM = 3 @pytest.fixture() def vectorstore(): obx = O...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/tests/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/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/vector_stores/llama-index-vector-stores-objectbox/tests/test_vector_stores_objectbox.py
llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/tests/test_vector_stores_objectbox.py
from llama_index.core.vector_stores.types import BasePydanticVectorStore from llama_index.vector_stores.objectbox import ObjectBoxVectorStore def test_class(): """Ensures that BasePydanticVectorStore is one of the parent classes of ObjectBoxVectorStore.""" names_of_base_classes = [b.__name__ for b in ObjectBo...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/llama_index/vector_stores/objectbox/__init__.py
llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/llama_index/vector_stores/objectbox/__init__.py
from llama_index.vector_stores.objectbox.base import ObjectBoxVectorStore __all__ = ["ObjectBoxVectorStore"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/llama_index/vector_stores/objectbox/base.py
llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/llama_index/vector_stores/objectbox/base.py
import logging import os import shutil import sys import time from typing import Any, List, Optional from llama_index.core.schema import BaseNode, MetadataMode, TextNode from llama_index.core.vector_stores import MetadataFilters from llama_index.core.vector_stores.types import ( BasePydanticVectorStore, Vector...
python
MIT
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_rag/llama-index-graph-rag-cognee/example.py
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/example.py
""" Simple example demonstrating the CogneeGraphRAG integration. This script shows how to: 1. Initialize the CogneeGraphRAG 2. Add documents to the knowledge graph 3. Process the data into a graph 4. Search for information 5. Visualize the graph Requirements: - Set OPENAI_API_KEY environment variable - Install the pa...
python
MIT
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_rag/llama-index-graph-rag-cognee/tests/test_visualize_graph.py
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/tests/test_visualize_graph.py
import os import sys import tempfile from unittest.mock import AsyncMock import pytest from llama_index.graph_rag.cognee import CogneeGraphRAG @pytest.mark.skipif( sys.version_info < (3, 10), reason="mock strategy requires python3.10 or higher" ) @pytest.mark.skipif( os.getenv("OPENAI_API_KEY") is None, ...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/tests/test_add_data.py
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/tests/test_add_data.py
import asyncio import sys import os import pytest from llama_index.core import Document from llama_index.graph_rag.cognee import CogneeGraphRAG def test_smoke(): """No-op test: CI will fail if no tests are collected.""" @pytest.mark.skipif( sys.version_info < (3, 10), reason="mock strategy requires python3...
python
MIT
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_rag/llama-index-graph-rag-cognee/tests/test_graph_rag_cognee.py
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/tests/test_graph_rag_cognee.py
import os import sys import tempfile from unittest.mock import AsyncMock, patch import cognee import pytest from llama_index.core import Document from llama_index.graph_rag.cognee import CogneeGraphRAG @pytest.mark.skipif( sys.version_info < (3, 10), reason="mock strategy requires python3.10 or higher" ) @pytest...
python
MIT
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_rag/llama-index-graph-rag-cognee/tests/__init__.py
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/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_rag/llama-index-graph-rag-cognee/llama_index/graph_rag/cognee/graph_rag.py
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/llama_index/graph_rag/cognee/graph_rag.py
import os import pathlib import webbrowser from typing import List, Union import cognee as cognee_lib from llama_index.core import Document from typing import TYPE_CHECKING if TYPE_CHECKING: from .base import GraphRAG # mypy: disable-error-code="attr-defined" class CogneeGraphRAG: """ Cognee GraphRAG...
python
MIT
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_rag/llama-index-graph-rag-cognee/llama_index/graph_rag/cognee/__init__.py
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/llama_index/graph_rag/cognee/__init__.py
from llama_index.graph_rag.cognee.graph_rag import CogneeGraphRAG __all__ = ["CogneeGraphRAG"]
python
MIT
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_rag/llama-index-graph-rag-cognee/llama_index/graph_rag/cognee/base.py
llama-index-integrations/graph_rag/llama-index-graph-rag-cognee/llama_index/graph_rag/cognee/base.py
from abc import abstractmethod from typing import Protocol, Union, List from llama_index.core import Document # NOTE: This is a bare-bone suggestion for an abstract protocol to define GraphRAG for llama-index # This should be expanded upon and integrated to llama-index-core to support multiple different GraphRAG # l...
python
MIT
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-falkordb/tests/test_pg_stores_falkordb.py
llama-index-integrations/graph_stores/llama-index-graph-stores-falkordb/tests/test_pg_stores_falkordb.py
import time import unittest import docker from llama_index.graph_stores.falkordb import FalkorDBPropertyGraphStore from llama_index.core.graph_stores.types import Relation, EntityNode from llama_index.core.schema import TextNode # Set up Docker client docker_client = docker.from_env() class TestFalkorDBPropertyGraph...
python
MIT
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-falkordb/tests/test_graph_stores_falkordb.py
llama-index-integrations/graph_stores/llama-index-graph-stores-falkordb/tests/test_graph_stores_falkordb.py
import time import docker import unittest from llama_index.graph_stores.falkordb.base import FalkorDBGraphStore # Set up Docker client docker_client = docker.from_env() class TestFalkorDBGraphStore(unittest.TestCase): @classmethod def setUpClass(cls): """Setup method called once for the entire test 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/graph_stores/llama-index-graph-stores-falkordb/tests/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-falkordb/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-falkordb/llama_index/graph_stores/falkordb/falkordb_property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-falkordb/llama_index/graph_stores/falkordb/falkordb_property_graph.py
from typing import Any, List, Dict, Optional, Tuple 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, ) from llama_index.core.graph_stores.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/graph_stores/llama-index-graph-stores-falkordb/llama_index/graph_stores/falkordb/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-falkordb/llama_index/graph_stores/falkordb/__init__.py
from llama_index.graph_stores.falkordb.base import FalkorDBGraphStore from llama_index.graph_stores.falkordb.falkordb_property_graph import ( FalkorDBPGStore, FalkorDBPropertyGraphStore, ) __all__ = ["FalkorDBGraphStore", "FalkorDBPGStore", "FalkorDBPropertyGraphStore"]
python
MIT
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-falkordb/llama_index/graph_stores/falkordb/base.py
llama-index-integrations/graph_stores/llama-index-graph-stores-falkordb/llama_index/graph_stores/falkordb/base.py
"""Simple graph store index.""" import logging from typing import Any, Dict, List, Optional import redis from falkordb import FalkorDB from llama_index.core.graph_stores.types import GraphStore logger = logging.getLogger(__name__) class FalkorDBGraphStore(GraphStore): """ FalkorDB Graph Store. In this...
python
MIT
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-nebula/tests/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/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-nebula/tests/test_graph_stores_nebula.py
llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/tests/test_graph_stores_nebula.py
from llama_index.core.graph_stores.types import GraphStore from llama_index.graph_stores.nebula import NebulaGraphStore def test_nebula_graph_store(): names_of_bases = [b.__name__ for b in NebulaGraphStore.__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-nebula/tests/test_property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/tests/test_property_graph.py
from llama_index.core.graph_stores.types import ( EntityNode, Relation, ChunkNode, ) from llama_index.core.schema import TextNode from llama_index.graph_stores.nebula import NebulaPropertyGraphStore from unittest import TestCase, SkipTest def get_store( props_schema: str = "`key` STRING, `_node_conten...
python
MIT
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-nebula/examples/a.py
llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/examples/a.py
from llama_index.core import Settings from llama_index.llms.openai import OpenAI from llama_index.embeddings.openai import OpenAIEmbedding from llama_index.embeddings.huggingface import HuggingFaceEmbedding Settings.llm = OpenAI(model="gpt-4o", temperature=0.3) Settings.embed_model = HuggingFaceEmbedding(model_name="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/graph_stores/llama-index-graph-stores-nebula/llama_index/graph_stores/nebula/nebula_property_graph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/llama_index/graph_stores/nebula/nebula_property_graph.py
from typing import Any, List, Dict, Optional, Tuple from llama_index.core.graph_stores.types import ( PropertyGraphStore, Triplet, LabelledNode, Relation, EntityNode, ChunkNode, ) from llama_index.core.graph_stores.utils import ( clean_string_values, value_sanitize, LIST_LIMIT, ) 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/graph_stores/llama-index-graph-stores-nebula/llama_index/graph_stores/nebula/utils.py
llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/llama_index/graph_stores/nebula/utils.py
import datetime from typing import Dict, Any, Optional, Tuple from nebula3.common.ttypes import Value, NList, Date, Time, DateTime from nebula3.gclient.net.base import BaseExecutor def url_scheme_parse(url) -> Tuple[str, int]: """ Parse the URL scheme and host from the URL. Parameters ---------- ...
python
MIT
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-nebula/llama_index/graph_stores/nebula/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/llama_index/graph_stores/nebula/__init__.py
from llama_index.graph_stores.nebula.nebula_graph_store import NebulaGraphStore from llama_index.graph_stores.nebula.nebula_property_graph import ( NebulaPropertyGraphStore, ) __all__ = ["NebulaGraphStore", "NebulaPropertyGraphStore"]
python
MIT
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-nebula/llama_index/graph_stores/nebula/nebula_graph_store.py
llama-index-integrations/graph_stores/llama-index-graph-stores-nebula/llama_index/graph_stores/nebula/nebula_graph_store.py
"""NebulaGraph graph store index.""" import logging import os from string import Template from typing import Any, Dict, List, Optional from llama_index.core.graph_stores.types import GraphStore from nebula3.common import ttypes from nebula3.Config import SessionPoolConfig from nebula3.Exception import IOErrorExceptio...
python
MIT
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/tests/test_pg_stores_memgraph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-memgraph/tests/test_pg_stores_memgraph.py
import os import pytest from llama_index.graph_stores.memgraph import MemgraphPropertyGraphStore from llama_index.core.graph_stores.types import ( EntityNode, Relation, ) from llama_index.core.schema import TextNode memgraph_user = os.environ.get("MEMGRAPH_TEST_USER") memgraph_pass = os.environ.get("MEMGRAPH_T...
python
MIT
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/tests/__init__.py
llama-index-integrations/graph_stores/llama-index-graph-stores-memgraph/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-memgraph/tests/test_graph_stores_memgraph.py
llama-index-integrations/graph_stores/llama-index-graph-stores-memgraph/tests/test_graph_stores_memgraph.py
from llama_index.core.graph_stores.types import GraphStore from llama_index.graph_stores.memgraph import MemgraphGraphStore def test_memgraph_graph_store(): names_of_bases = [b.__name__ for b in MemgraphGraphStore.__bases__] assert GraphStore.__name__ in names_of_bases
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false