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/readers/llama-index-readers-airbyte-gong/llama_index/readers/airbyte_gong/base.py | llama-index-integrations/readers/llama-index-readers-airbyte-gong/llama_index/readers/airbyte_gong/base.py | from typing import Any, Mapping, Optional
from llama_index.readers.airbyte_cdk.base import AirbyteCDKReader, RecordHandler
class AirbyteGongReader(AirbyteCDKReader):
"""
AirbyteGongReader reader.
Retrieve documents from Gong
Args:
config: The config object for the gong source.
"""
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-dashvector/tests/test_readers_dashvector.py | llama-index-integrations/readers/llama-index-readers-dashvector/tests/test_readers_dashvector.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.dashvector import DashVectorReader
def test_class():
names_of_base_classes = [b.__name__ for b in DashVectorReader.__mro__]
assert BaseReader.__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/readers/llama-index-readers-dashvector/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-dashvector/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/readers/llama-index-readers-dashvector/llama_index/readers/dashvector/__init__.py | llama-index-integrations/readers/llama-index-readers-dashvector/llama_index/readers/dashvector/__init__.py | from llama_index.readers.dashvector.base import DashVectorReader
__all__ = ["DashVectorReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-dashvector/llama_index/readers/dashvector/base.py | llama-index-integrations/readers/llama-index-readers-dashvector/llama_index/readers/dashvector/base.py | """DashVector reader."""
from typing import Dict, List, Optional
import json
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class DashVectorReader(BaseReader):
"""
DashVector reader.
Args:
api_key (str): DashVector API key.
endpoint (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/readers/llama-index-readers-huggingface-fs/tests/test_readers_huggingface.py | llama-index-integrations/readers/llama-index-readers-huggingface-fs/tests/test_readers_huggingface.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.huggingface_fs import HuggingFaceFSReader
def test_class():
names_of_base_classes = [b.__name__ for b in HuggingFaceFSReader.__mro__]
assert BaseReader.__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/readers/llama-index-readers-huggingface-fs/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-huggingface-fs/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/readers/llama-index-readers-huggingface-fs/llama_index/readers/huggingface_fs/__init__.py | llama-index-integrations/readers/llama-index-readers-huggingface-fs/llama_index/readers/huggingface_fs/__init__.py | """Init params."""
from llama_index.readers.huggingface_fs.base import HuggingFaceFSReader
__all__ = ["HuggingFaceFSReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-huggingface-fs/llama_index/readers/huggingface_fs/base.py | llama-index-integrations/readers/llama-index-readers-huggingface-fs/llama_index/readers/huggingface_fs/base.py | """
Hugging Face file reader.
A parser for HF files.
"""
import json
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import Dict, List
import pandas as pd
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class HuggingFaceFSReader(BaseRe... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-whisper/tests/test_readers_whisper.py | llama-index-integrations/readers/llama-index-readers-whisper/tests/test_readers_whisper.py | import requests
import pytest
import os
from llama_index.core.readers.base import BaseReader
from llama_index.readers.whisper import WhisperReader
from io import BytesIO
AUDIO_URL = "https://science.nasa.gov/wp-content/uploads/2024/04/sounds-of-mars-one-small-step-earth.wav"
AUDIO_URL = "https://audio-samples.github.... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-whisper/tests/conftest.py | llama-index-integrations/readers/llama-index-readers-whisper/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/readers/llama-index-readers-whisper/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-whisper/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/readers/llama-index-readers-whisper/llama_index/readers/whisper/__init__.py | llama-index-integrations/readers/llama-index-readers-whisper/llama_index/readers/whisper/__init__.py | from llama_index.readers.whisper.base import WhisperReader
__all__ = ["WhisperReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-whisper/llama_index/readers/whisper/base.py | llama-index-integrations/readers/llama-index-readers-whisper/llama_index/readers/whisper/base.py | """JSON Reader."""
import os
from fsspec import AbstractFileSystem
from fsspec.implementations.local import LocalFileSystem
from pathlib import Path
from openai import OpenAI, AsyncOpenAI
from typing import Dict, List, Optional, Union
from io import BytesIO
from llama_index.core.readers.base import BaseReader
from ll... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-remote-depth/tests/test_readers_remote_depth.py | llama-index-integrations/readers/llama-index-readers-remote-depth/tests/test_readers_remote_depth.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.remote_depth import RemoteDepthReader
def test_class():
names_of_base_classes = [b.__name__ for b in RemoteDepthReader.__mro__]
assert BaseReader.__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/readers/llama-index-readers-remote-depth/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-remote-depth/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/readers/llama-index-readers-remote-depth/llama_index/readers/remote_depth/__init__.py | llama-index-integrations/readers/llama-index-readers-remote-depth/llama_index/readers/remote_depth/__init__.py | from llama_index.readers.remote_depth.base import RemoteDepthReader
__all__ = ["RemoteDepthReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-remote-depth/llama_index/readers/remote_depth/base.py | llama-index-integrations/readers/llama-index-readers-remote-depth/llama_index/readers/remote_depth/base.py | """
Remote file reader.
A loader that fetches any remote page or file by URL and retrieves child pages with certain constraints. The class also parses the contents of each page and provides access to the parsed data.
"""
from typing import Any, Dict, List, Optional, Union
import requests
from llama_index.core.reader... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-mondaydotcom/tests/test_readers_mondaydotcom.py | llama-index-integrations/readers/llama-index-readers-mondaydotcom/tests/test_readers_mondaydotcom.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.mondaydotcom import MondayReader
def test_class():
names_of_base_classes = [b.__name__ for b in MondayReader.__mro__]
assert BaseReader.__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/readers/llama-index-readers-mondaydotcom/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-mondaydotcom/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/readers/llama-index-readers-mondaydotcom/llama_index/readers/mondaydotcom/__init__.py | llama-index-integrations/readers/llama-index-readers-mondaydotcom/llama_index/readers/mondaydotcom/__init__.py | from llama_index.readers.mondaydotcom.base import MondayReader
__all__ = ["MondayReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-mondaydotcom/llama_index/readers/mondaydotcom/base.py | llama-index-integrations/readers/llama-index-readers-mondaydotcom/llama_index/readers/mondaydotcom/base.py | """monday.com reader."""
from typing import Dict, List
import requests
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class MondayReader(BaseReader):
"""
monday.com reader. Reads board's data by a GraphQL query.
Args:
api_key (str): monday.com ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/tests/test_retrievers_bm25_retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/tests/test_retrievers_bm25_retriever.py | from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.retrievers.mongodb_atlas_bm25_retriever.base import (
MongoDBAtlasBM25Retriever,
)
def test_class():
names_of_base_classes = [b.__name__ for b in MongoDBAtlasBM25Retriever.__mro__]
assert BaseRetriever.__name__ in names_of_bas... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/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/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/llama_index/retrievers/mongodb_atlas_bm25_retriever/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/llama_index/retrievers/mongodb_atlas_bm25_retriever/__init__.py | from llama_index.retrievers.mongodb_atlas_bm25_retriever.base import (
MongoDBAtlasBM25Retriever,
)
__all__ = ["MongoDBAtlasBM25Retriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/llama_index/retrievers/mongodb_atlas_bm25_retriever/base.py | llama-index-integrations/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/llama_index/retrievers/mongodb_atlas_bm25_retriever/base.py | import logging
import os
import json
from typing import Any, List, Optional, cast
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.constants import DEFAULT_SIMILARITY_TOP_K
from llama_index.core.schema import NodeWithScore, QueryBundle, TextNode
from llama_index.core.vector_stores.u... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-bm25/tests/test_retrievers_bm25_retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-bm25/tests/test_retrievers_bm25_retriever.py | import os
import shutil
from llama_index.core import Document
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.retrievers.bm25.base import BM25Retriever
from llama_index.core.node_parser import SentenceSplitter
from llama_index.core.vector_stores.types import (
MetadataFilters,
M... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-bm25/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-bm25/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/retrievers/llama-index-retrievers-bm25/llama_index/retrievers/bm25/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-bm25/llama_index/retrievers/bm25/__init__.py | from llama_index.retrievers.bm25.base import BM25Retriever
__all__ = ["BM25Retriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-bm25/llama_index/retrievers/bm25/base.py | llama-index-integrations/retrievers/llama-index-retrievers-bm25/llama_index/retrievers/bm25/base.py | import json
import logging
import os
from typing import Any, Callable, Dict, List, Optional, cast
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.constants import DEFAULT_SIMILARITY_TOP_K
from llama_index.core.indices.vec... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-kendra/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-kendra/__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/retrievers/llama-index-retrievers-kendra/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-kendra/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/retrievers/llama-index-retrievers-kendra/tests/test_retrievers_kendra.py | llama-index-integrations/retrievers/llama-index-retrievers-kendra/tests/test_retrievers_kendra.py | from unittest.mock import patch, MagicMock
from llama_index.core.schema import NodeWithScore, TextNode, QueryBundle
@patch("llama_index.core.utilities.aws_utils.get_aws_service_client")
def test_retrieve_document_results(mock_get_aws_service_client):
mock_client = MagicMock()
mock_client.query.return_value =... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-kendra/llama_index/retrievers/kendra/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-kendra/llama_index/retrievers/kendra/__init__.py | from llama_index.retrievers.kendra.base import AmazonKendraRetriever
__all__ = ["AmazonKendraRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-kendra/llama_index/retrievers/kendra/base.py | llama-index-integrations/retrievers/llama-index-retrievers-kendra/llama_index/retrievers/kendra/base.py | """AWS Kendra Retriever."""
from typing import List, Optional, Dict, Any
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.schema import NodeWithScore, QueryBundle, TextNode
from llama_index.core.utilities.aws_utils 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/retrievers/llama-index-retrievers-vertexai-search/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-vertexai-search/__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/retrievers/llama-index-retrievers-vertexai-search/tests/test_retrievers_vertexai_search.py | llama-index-integrations/retrievers/llama-index-retrievers-vertexai-search/tests/test_retrievers_vertexai_search.py | from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.retrievers.vertexai_search.base import VertexAISearchRetriever
def test_class():
names_of_base_classes = [b.__name__ for b in VertexAISearchRetriever.__mro__]
assert BaseRetriever.__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/retrievers/llama-index-retrievers-vertexai-search/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-vertexai-search/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/retrievers/llama-index-retrievers-vertexai-search/llama_index/retrievers/vertexai_search/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-vertexai-search/llama_index/retrievers/vertexai_search/__init__.py | from llama_index.retrievers.vertexai_search.base import VertexAISearchRetriever
__all__ = ["VertexAISearchRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-vertexai-search/llama_index/retrievers/vertexai_search/base.py | llama-index-integrations/retrievers/llama-index-retrievers-vertexai-search/llama_index/retrievers/vertexai_search/base.py | """
Vertex AI Search Retriever.
Vertex AI Search helps developers build secure, Google-quality search experiences for websites,
intranet and RAG systems for generative AI agents and apps.
Vertex AI Search is a part of Vertex AI Agent Builder.
"""
from __future__ import annotations
from llama_index.core.base.base_ret... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-vertexai-search/llama_index/retrievers/vertexai_search/_utils.py | llama-index-integrations/retrievers/llama-index-retrievers-vertexai-search/llama_index/retrievers/vertexai_search/_utils.py | """Utilities to init Vertex AI."""
from importlib import metadata
from typing import Optional
from google.api_core.gapic_v1.client_info import ClientInfo
def get_user_agent(module: Optional[str] = None) -> str:
r"""
Returns a custom user agent header.
Args:
module (Optional[str]):
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/retrievers/llama-index-retrievers-vectorize/tests/test_retrievers_vectorize.py | llama-index-integrations/retrievers/llama-index-retrievers-vectorize/tests/test_retrievers_vectorize.py | import http
import json
import logging
import os
import time
from collections.abc import Iterator
from pathlib import Path
from typing import Literal
from unittest.mock import MagicMock
import pytest
import urllib3
import vectorize_client as v
from urllib3 import HTTPResponse
from llama_index.core.schema import NodeR... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-vectorize/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-vectorize/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/retrievers/llama-index-retrievers-vectorize/llama_index/retrievers/vectorize/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-vectorize/llama_index/retrievers/vectorize/__init__.py | """Vectorize retrievers."""
from llama_index.retrievers.vectorize.base import VectorizeRetriever
__all__ = ["VectorizeRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-vectorize/llama_index/retrievers/vectorize/base.py | llama-index-integrations/retrievers/llama-index-retrievers-vectorize/llama_index/retrievers/vectorize/base.py | """Vectorize retrievers."""
from __future__ import annotations
from typing import TYPE_CHECKING, Any, Literal
from vectorize_client import (
ApiClient,
Configuration,
Document,
PipelinesApi,
RetrieveDocumentsRequest,
)
from llama_index.core.base.base_retriever import BaseRetriever
from llama_ind... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-tldw/tests/test_retrievers_tldw_retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-tldw/tests/test_retrievers_tldw_retriever.py | from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.retrievers.tldw.base import TldwRetriever
def test_class():
names_of_base_classes = [b.__name__ for b in TldwRetriever.__mro__]
assert BaseRetriever.__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/retrievers/llama-index-retrievers-tldw/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-tldw/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/retrievers/llama-index-retrievers-tldw/llama_index/retrievers/tldw/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-tldw/llama_index/retrievers/tldw/__init__.py | from llama_index.retrievers.tldw.base import TldwRetriever
__all__ = ["TldwRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-tldw/llama_index/retrievers/tldw/base.py | llama-index-integrations/retrievers/llama-index-retrievers-tldw/llama_index/retrievers/tldw/base.py | import logging
from typing import Any, Dict, List, Optional
import requests
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.schema import (
NodeWithScore,
QueryBundle,
TextNode,
)
from pydantic import BaseModel... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-alletra-x10000/tests/test_base.py | llama-index-integrations/retrievers/llama-index-retrievers-alletra-x10000/tests/test_base.py | # Copyright Hewlett Packard Enterprise Development LP.
import pytest
from unittest.mock import MagicMock
from llama_index.core.schema import QueryBundle, NodeWithScore
from llama_index.retrievers.alletra_x10000_retriever import AlletraX10000Retriever
def test_alletra_x10000_retriever_initialization():
retrieve... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-alletra-x10000/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-alletra-x10000/tests/__init__.py | # Copyright Hewlett Packard Enterprise Development LP.
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-alletra-x10000/llama_index/retrievers/alletra_x10000_retriever/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-alletra-x10000/llama_index/retrievers/alletra_x10000_retriever/__init__.py | # Copyright Hewlett Packard Enterprise Development LP.
from llama_index.retrievers.alletra_x10000_retriever.base import AlletraX10000Retriever
__all__ = ["AlletraX10000Retriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-alletra-x10000/llama_index/retrievers/alletra_x10000_retriever/base.py | llama-index-integrations/retrievers/llama-index-retrievers-alletra-x10000/llama_index/retrievers/alletra_x10000_retriever/base.py | # Copyright Hewlett Packard Enterprise Development LP.
from pydi_client import DIClient
from typing import Any, Dict, Union
from llama_index.core.retrievers import BaseRetriever
from llama_index.core.schema import QueryBundle, NodeWithScore, TextNode
class AlletraX10000Retriever(BaseRetriever):
def __init__(
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-galaxia/tests/test_retrievers_galaxia.py | llama-index-integrations/retrievers/llama-index-retrievers-galaxia/tests/test_retrievers_galaxia.py | from unittest.mock import MagicMock
from llama_index.core.schema import NodeWithScore, QueryBundle, TextNode
from llama_index.retrievers.galaxia import GalaxiaRetriever
def test_retrieve():
mock_client = MagicMock()
mock_client.retrieve.return_value = [
{
"group": "test_file.txt",
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-galaxia/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-galaxia/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/retrievers/llama-index-retrievers-galaxia/examples/example_1.py | llama-index-integrations/retrievers/llama-index-retrievers-galaxia/examples/example_1.py | #! /usr/bin/env python3
from llama_index.core.schema import QueryBundle
from llama_index.retrievers.galaxia import GalaxiaRetriever
retriever = GalaxiaRetriever(
api_url="https://beta.api.smabbler.com",
api_key="<key>",
knowledge_base_id="<knowledge_base_id>",
)
query = "What is Marie Curie's nationality... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-galaxia/llama_index/retrievers/galaxia/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-galaxia/llama_index/retrievers/galaxia/__init__.py | from llama_index.retrievers.galaxia.base import GalaxiaRetriever
__all__ = ["GalaxiaRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-galaxia/llama_index/retrievers/galaxia/base.py | llama-index-integrations/retrievers/llama-index-retrievers-galaxia/llama_index/retrievers/galaxia/base.py | import time
import http.client
import json
from typing import List, Optional, Union
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.schema import NodeWithScore, QueryBundle, TextNode
class GalaxiaClient:
def __init_... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-you/tests/test_retrievers_you_retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-you/tests/test_retrievers_you_retriever.py | from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.retrievers.you import YouRetriever
def test_class():
names_of_base_classes = [b.__name__ for b in YouRetriever.__mro__]
assert BaseRetriever.__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/retrievers/llama-index-retrievers-you/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-you/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/retrievers/llama-index-retrievers-you/llama_index/retrievers/you/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-you/llama_index/retrievers/you/__init__.py | from llama_index.retrievers.you.base import YouRetriever
__all__ = ["YouRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-you/llama_index/retrievers/you/base.py | llama-index-integrations/retrievers/llama-index-retrievers-you/llama_index/retrievers/you/base.py | """You Retriever."""
import logging
import os
import warnings
from typing import Any, Dict, List, Literal, Optional
import requests
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.schema import NodeWithScore, QueryBundle... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-pathway/tests/test_retrievers_pathway_retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-pathway/tests/test_retrievers_pathway_retriever.py | from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.retrievers.pathway.base import PathwayRetriever
def test_class():
names_of_base_classes = [b.__name__ for b in PathwayRetriever.__mro__]
assert BaseRetriever.__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/retrievers/llama-index-retrievers-pathway/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-pathway/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/retrievers/llama-index-retrievers-pathway/llama_index/retrievers/pathway/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-pathway/llama_index/retrievers/pathway/__init__.py | from llama_index.retrievers.pathway.base import PathwayRetriever
__all__ = ["PathwayRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-pathway/llama_index/retrievers/pathway/base.py | llama-index-integrations/retrievers/llama-index-retrievers-pathway/llama_index/retrievers/pathway/base.py | """Pathway Retriever."""
import json
from typing import List, Optional
import requests
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.constants import DEFAULT_SIMILARITY_TOP_K
from llama_index.core.schema import (
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/retrievers/llama-index-retrievers-superlinked/tests/test_unit_superlinked_retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-superlinked/tests/test_unit_superlinked_retriever.py | """Unit tests for SuperlinkedRetriever (LlamaIndex)."""
import pytest
from typing import Any
from unittest.mock import Mock
from llama_index.retrievers.superlinked import SuperlinkedRetriever
# Patch superlinked types before importing the retriever to satisfy validators
class MockApp:
pass
class MockQuery:
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-superlinked/tests/test_integration_superlinked_retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-superlinked/tests/test_integration_superlinked_retriever.py | """Integration-like tests using only mocks to simulate Superlinked behavior."""
import pytest
from typing import Any, List
from unittest.mock import Mock
from llama_index.retrievers.superlinked import SuperlinkedRetriever
# Patch superlinked modules once for all tests
class MockApp:
pass
class MockQuery:
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-superlinked/examples/steam_games_example.py | llama-index-integrations/retrievers/llama-index-retrievers-superlinked/examples/steam_games_example.py | """
Example: Superlinked + LlamaIndex custom retriever (Steam games).
This example shows how to:
- Build a Superlinked pipeline (schema, space, index, app)
- Define a parameterized Superlinked QueryDescriptor using sl.Param("query_text")
- Inject the Superlinked App and QueryDescriptor into the LlamaIndex retriever
- ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-superlinked/llama_index/retrievers/superlinked/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-superlinked/llama_index/retrievers/superlinked/__init__.py | """
Superlinked retriever integration for LlamaIndex.
"""
from llama_index.retrievers.superlinked.retriever import SuperlinkedRetriever
__all__ = ["SuperlinkedRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-superlinked/llama_index/retrievers/superlinked/retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-superlinked/llama_index/retrievers/superlinked/retriever.py | from typing import Any, List, Optional
from llama_index.core.retrievers import BaseRetriever
from llama_index.core.schema import QueryBundle, NodeWithScore, TextNode
from llama_index.core.callbacks.base import CallbackManager
from superlinked.framework.dsl.app.app import App
from superlinked.framework.dsl.query.query_... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/tests/test_retrievers_bm25_retriever.py | llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/tests/test_retrievers_bm25_retriever.py | import duckdb
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.retrievers.duckdb_retriever.base import (
DuckDBRetriever,
)
def test_class():
names_of_base_classes = [b.__name__ for b in DuckDBRetriever.__mro__]
assert BaseRetriever.__name__ in names_of_base_classes
def te... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/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/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_retriever/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_retriever/__init__.py | from llama_index.retrievers.duckdb_retriever.base import (
DuckDBRetriever,
)
__all__ = ["DuckDBRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_retriever/base.py | llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_retriever/base.py | import logging
import os
from typing import List, Optional
import duckdb
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.constants import DEFAULT_SIMILARITY_TOP_K
from llama_index.core.schema import NodeWithScore, QueryBun... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-bedrock/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-bedrock/__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/retrievers/llama-index-retrievers-bedrock/tests/test_retrievers_bedrock.py | llama-index-integrations/retrievers/llama-index-retrievers-bedrock/tests/test_retrievers_bedrock.py | import asyncio
from unittest.mock import patch, MagicMock, AsyncMock
from llama_index.core.schema import QueryBundle
@patch("llama_index.core.utilities.aws_utils.get_aws_service_client")
@patch("aioboto3.Session")
def test_aretrieve_async(mock_aioboto3_session, mock_get_aws_service_client):
"""Test the async ret... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-bedrock/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-bedrock/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/retrievers/llama-index-retrievers-bedrock/llama_index/retrievers/bedrock/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-bedrock/llama_index/retrievers/bedrock/__init__.py | from llama_index.retrievers.bedrock.base import AmazonKnowledgeBasesRetriever
__all__ = ["AmazonKnowledgeBasesRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-bedrock/llama_index/retrievers/bedrock/base.py | llama-index-integrations/retrievers/llama-index-retrievers-bedrock/llama_index/retrievers/bedrock/base.py | """Bedrock Retriever."""
from typing import List, Optional, Dict, Any
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.schema import NodeWithScore, QueryBundle, TextNode
from llama_index.core.utilities.aws_utils import get... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-videodb/tests/test_retrievers_videdb.py | llama-index-integrations/retrievers/llama-index-retrievers-videodb/tests/test_retrievers_videdb.py | from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.retrievers.videodb import VideoDBRetriever
def test_class():
names_of_base_classes = [b.__name__ for b in VideoDBRetriever.__mro__]
assert BaseRetriever.__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/retrievers/llama-index-retrievers-videodb/tests/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-videodb/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/retrievers/llama-index-retrievers-videodb/llama_index/retrievers/videodb/__init__.py | llama-index-integrations/retrievers/llama-index-retrievers-videodb/llama_index/retrievers/videodb/__init__.py | from llama_index.retrievers.videodb.base import VideoDBRetriever
__all__ = ["VideoDBRetriever"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/retrievers/llama-index-retrievers-videodb/llama_index/retrievers/videodb/base.py | llama-index-integrations/retrievers/llama-index-retrievers-videodb/llama_index/retrievers/videodb/base.py | from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.schema import NodeWithScore, QueryBundle, TextNode
import logging
import os
from typing import List, Optional
from videodb import connect
from videodb import SearchType, Ind... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-pgvecto-rs/tests/__init__.py | llama-index-integrations/vector_stores/llama-index-vector-stores-pgvecto-rs/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-pgvecto-rs/tests/test_vector_stores_pgvecto_rs.py | llama-index-integrations/vector_stores/llama-index-vector-stores-pgvecto-rs/tests/test_vector_stores_pgvecto_rs.py | from llama_index.core.vector_stores.types import BasePydanticVectorStore
from llama_index.vector_stores.pgvecto_rs import PGVectoRsStore
def test_class():
names_of_base_classes = [b.__name__ for b in PGVectoRsStore.__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-pgvecto-rs/llama_index/vector_stores/pgvecto_rs/__init__.py | llama-index-integrations/vector_stores/llama-index-vector-stores-pgvecto-rs/llama_index/vector_stores/pgvecto_rs/__init__.py | from llama_index.vector_stores.pgvecto_rs.base import PGVectoRsStore
__all__ = ["PGVectoRsStore"]
| python | MIT | 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-pgvecto-rs/llama_index/vector_stores/pgvecto_rs/base.py | llama-index-integrations/vector_stores/llama-index-vector-stores-pgvecto-rs/llama_index/vector_stores/pgvecto_rs/base.py | import logging
from typing import Any, List
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,
VectorStoreQueryResult,
)
from llama_index.core.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/vector_stores/llama-index-vector-stores-rocksetdb/tests/test_vector_stores_rocksetdb.py | llama-index-integrations/vector_stores/llama-index-vector-stores-rocksetdb/tests/test_vector_stores_rocksetdb.py | from llama_index.core.vector_stores.types import BasePydanticVectorStore
from llama_index.vector_stores.rocksetdb import RocksetVectorStore
def test_class():
names_of_base_classes = [b.__name__ for b in RocksetVectorStore.__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-rocksetdb/tests/__init__.py | llama-index-integrations/vector_stores/llama-index-vector-stores-rocksetdb/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-rocksetdb/llama_index/vector_stores/rocksetdb/__init__.py | llama-index-integrations/vector_stores/llama-index-vector-stores-rocksetdb/llama_index/vector_stores/rocksetdb/__init__.py | from llama_index.vector_stores.rocksetdb.base import RocksetVectorStore
__all__ = ["RocksetVectorStore"]
| python | MIT | 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-rocksetdb/llama_index/vector_stores/rocksetdb/base.py | llama-index-integrations/vector_stores/llama-index-vector-stores-rocksetdb/llama_index/vector_stores/rocksetdb/base.py | from __future__ import annotations
from enum import Enum
from os import getenv
from time import sleep
from types import ModuleType
from typing import Any, List, Type, TypeVar
import rockset
from llama_index.core.schema import BaseNode
from llama_index.core.vector_stores.types import (
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-mongodb/tests/test_vector_stores_mongodb.py | llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_vector_stores_mongodb.py | from llama_index.core.vector_stores.types import BasePydanticVectorStore
from llama_index.vector_stores.mongodb import MongoDBAtlasVectorSearch
def test_class() -> None:
names_of_base_classes = [b.__name__ for b in MongoDBAtlasVectorSearch.__mro__]
assert BasePydanticVectorStore.__name__ in names_of_base_clas... | python | MIT | 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-mongodb/tests/test_vectorstore.py | llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_vectorstore.py | import asyncio
import pytest
from time import sleep
from typing import List
from llama_index.core.schema import Document, TextNode
from llama_index.core.vector_stores.types import (
FilterCondition,
FilterOperator,
MetadataFilter,
MetadataFilters,
VectorStoreQuery,
VectorStoreQueryMode,
)
from ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/conftest.py | llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/conftest.py | import os
from typing import List
import pytest
from llama_index.core.ingestion import IngestionPipeline
from llama_index.core.node_parser import SentenceSplitter
from llama_index.core.schema import Document, TextNode
from llama_index.embeddings.openai import OpenAIEmbedding
from llama_index.core import Settings
from ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/__init__.py | llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/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-mongodb/tests/test_index_commands.py | llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_index_commands.py | """
Test of utility functions for working with Search Index commands.
Note that search index commands are only supported on Atlas Clusters >=M10.
"""
import os
from typing import AsyncGenerator, Generator, List, Optional
import pytest
import pytest_asyncio
from llama_index.vector_stores.mongodb import MongoDBAtlasVe... | python | MIT | 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-mongodb/tests/test_filters.py | llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_filters.py | """
Demonstrates how to use filters in Vector Search.
If one wishes to use filter by fields in vectorSearch,
these fields also need to be indexed. These are full-text 'Atlas Search' Indexes.
Indexes can be done manually on all clusters through the Atlas UI.
For dedicated clusters (>= M10), utility functions can be use... | python | MIT | 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-mongodb/tests/test_integration.py | llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_integration.py | """
Integration Tests of llama-index-vector-stores-mongodb
with MongoDB Atlas Vector Datastore and OPENAI Embedding model.
As described in docs/providers/mongodb/setup.md, to run this, one must
have a running MongoDB Atlas Cluster, and
provide a valid OPENAI_API_KEY.
"""
import asyncio
import pytest
from typing impor... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/llama_index/vector_stores/mongodb/pipelines.py | llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/llama_index/vector_stores/mongodb/pipelines.py | """
Aggregation pipeline components used in Atlas Full-Text, Vector, and Hybrid Search.
"""
from typing import Any, Dict, List, Optional, TypeVar
from llama_index.core.vector_stores.types import (
FilterCondition,
FilterOperator,
MetadataFilters,
)
MongoDBDocumentType = TypeVar("MongoDBDocumentType", bo... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.