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-packs/llama-index-packs-cohere-citation-chat/llama_index/packs/cohere_citation_chat/citations_context_chat_engine.py | llama-index-packs/llama-index-packs-cohere-citation-chat/llama_index/packs/cohere_citation_chat/citations_context_chat_engine.py | import asyncio
from typing import List, Optional, Any
from enum import Enum
from dataclasses import dataclass, field
import logging
from llama_index.core.callbacks import trace_method
from llama_index.core.chat_engine.context import ContextChatEngine
from llama_index.core.base.llms.types import ChatMessage
from llama_... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-koda-retriever/tests/test_koda_retriever.py | llama-index-packs/llama-index-packs-koda-retriever/tests/test_koda_retriever.py | from asyncio import run
from llama_index.packs.koda_retriever import KodaRetriever
from llama_index.core.indices.base import BaseIndex
from llama_index.core.llms.llm import BaseLLM
def test_init(setup):
retriever = setup.get("retriever")
assert isinstance(retriever.index, BaseIndex), (
"index should ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-koda-retriever/tests/monkeypatch.py | llama-index-packs/llama-index-packs-koda-retriever/tests/monkeypatch.py | """
This is a monkeypatch script that will allow us to SIMULATE hybrid search functionality to the SimpleVectorStore class.
Emphasis on simulate, as we are not actually adding the functionality to the class, but rather
just allowing the class to accept VectorStoreQuery objects with the mode set to VectorStoreQueryMode.... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-koda-retriever/tests/conftest.py | llama-index-packs/llama-index-packs-koda-retriever/tests/conftest.py | from llama_index.core.embeddings.mock_embed_model import MockEmbedding
from llama_index.core.postprocessor import LLMRerank
from llama_index.core import Settings
from llama_index.packs.koda_retriever import (
KodaRetriever,
AlphaMatrix,
DEFAULT_CATEGORIES,
)
import pytest
from tests.koda_mocking import KVM... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-koda-retriever/tests/koda_mocking.py | llama-index-packs/llama-index-packs-koda-retriever/tests/koda_mocking.py | """
This module contains a class (KVMockLLM) that slightly extends the Llama Index MockLLM
class further by allowing the user to specify a dictionary of prompt-response pairs.
This allows the user to specify the response that the mock LLM should return based on the prompt.
This should really only be used for testing p... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-koda-retriever/tests/__init__.py | llama-index-packs/llama-index-packs-koda-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-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/matrix.py | llama-index-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/matrix.py | from pydantic import BaseModel
from typing import Optional, Dict, List
class AlphaMatrix(BaseModel):
"""
This class is not necessary to understand to use a KodaRetriever - as it will be automatically instantiated if a dictionary is provided.
Pydantic class to enforce the required fields for a KodaRetriev... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/constants.py | llama-index-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/constants.py | CATEGORIZER_PROMPT = """
You are an AI tool meant to categorize questions into a set of curated categories.
Here are the categories and additional information for each category you're meant to categorize the question below into: (Examples may be separated by a ;) \n
{category_info}
When responding with the selected ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/__init__.py | llama-index-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/__init__.py | from llama_index.packs.koda_retriever.base import KodaRetriever
from llama_index.packs.koda_retriever.matrix import AlphaMatrix
from llama_index.packs.koda_retriever.constants import DEFAULT_CATEGORIES
__all__ = ["KodaRetriever", "AlphaMatrix", "DEFAULT_CATEGORIES"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/base.py | llama-index-packs/llama-index-packs-koda-retriever/llama_index/packs/koda_retriever/base.py | """
Defines a custom hybrid retriever for flexible alpha tuning.
Idea & original implementation sourced from the following docs:
- https://blog.llamaindex.ai/llamaindex-enhancing-retrieval-performance-with-alpha-tuning-in-hybrid-search-in-rag-135d0c9b8a00
- https://techcommunity.microsoft.com/t5/ai-azure-ai-se... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-sub-question-weaviate/tests/__init__.py | llama-index-packs/llama-index-packs-sub-question-weaviate/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-packs/llama-index-packs-sub-question-weaviate/tests/test_packs_sub_question_weaviate.py | llama-index-packs/llama-index-packs-sub-question-weaviate/tests/test_packs_sub_question_weaviate.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.sub_question_weaviate import WeaviateSubQuestionPack
def test_class():
names_of_base_classes = [b.__name__ for b in WeaviateSubQuestionPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-sub-question-weaviate/llama_index/packs/sub_question_weaviate/__init__.py | llama-index-packs/llama-index-packs-sub-question-weaviate/llama_index/packs/sub_question_weaviate/__init__.py | from llama_index.packs.sub_question_weaviate.base import WeaviateSubQuestionPack
__all__ = ["WeaviateSubQuestionPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-sub-question-weaviate/llama_index/packs/sub_question_weaviate/base.py | llama-index-packs/llama-index-packs-sub-question-weaviate/llama_index/packs/sub_question_weaviate/base.py | """Weaviate Sub-Question Query Engine Pack."""
from typing import Any, Dict, List, Optional
from llama_index.core.indices.vector_store import VectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.query_engine import SubQuestionQueryEngine
from llama_index.core.schema 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-packs/llama-index-packs-deeplake-deepmemory-retriever/tests/test_packs_deeplake_deepmemory_retriever.py | llama-index-packs/llama-index-packs-deeplake-deepmemory-retriever/tests/test_packs_deeplake_deepmemory_retriever.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.deeplake_deepmemory_retriever import DeepMemoryRetrieverPack
def test_class():
names_of_base_classes = [b.__name__ for b in DeepMemoryRetrieverPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-deeplake-deepmemory-retriever/tests/__init__.py | llama-index-packs/llama-index-packs-deeplake-deepmemory-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-packs/llama-index-packs-deeplake-deepmemory-retriever/llama_index/packs/deeplake_deepmemory_retriever/__init__.py | llama-index-packs/llama-index-packs-deeplake-deepmemory-retriever/llama_index/packs/deeplake_deepmemory_retriever/__init__.py | from llama_index.packs.deeplake_deepmemory_retriever.base import DeepMemoryRetrieverPack
__all__ = ["DeepMemoryRetrieverPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-deeplake-deepmemory-retriever/llama_index/packs/deeplake_deepmemory_retriever/base.py | llama-index-packs/llama-index-packs-deeplake-deepmemory-retriever/llama_index/packs/deeplake_deepmemory_retriever/base.py | """DeepMemory Retrieval Pack."""
from typing import Any, Dict, List, Optional
from llama_index.core.indices.vector_store import VectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.query_engine import RetrieverQueryEngine
from llama_index.core.schema import TextNode
from 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-packs/llama-index-packs-node-parser-semantic-chunking/tests/test_packs_node_parser.py | llama-index-packs/llama-index-packs-node-parser-semantic-chunking/tests/test_packs_node_parser.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.node_parser_semantic_chunking import (
SemanticChunkingQueryEnginePack,
)
def test_class():
names_of_base_classes = [
b.__name__ for b in SemanticChunkingQueryEnginePack.__mro__
]
assert BaseLlamaPack.__name__ in 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-packs/llama-index-packs-node-parser-semantic-chunking/tests/__init__.py | llama-index-packs/llama-index-packs-node-parser-semantic-chunking/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-packs/llama-index-packs-node-parser-semantic-chunking/llama_index/packs/node_parser_semantic_chunking/__init__.py | llama-index-packs/llama-index-packs-node-parser-semantic-chunking/llama_index/packs/node_parser_semantic_chunking/__init__.py | from llama_index.packs.node_parser_semantic_chunking.base import (
SemanticChunkingQueryEnginePack,
)
__all__ = ["SemanticChunkingQueryEnginePack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-node-parser-semantic-chunking/llama_index/packs/node_parser_semantic_chunking/base.py | llama-index-packs/llama-index-packs-node-parser-semantic-chunking/llama_index/packs/node_parser_semantic_chunking/base.py | """
Semantic embedding chunking agent pack.
Inspired by Greg Kamradt's text splitting notebook:
https://github.com/FullStackRetrieval-com/RetrievalTutorials/blob/main/5_Levels_Of_Text_Splitting.ipynb
We've ported over relevant code sections. Check out the original
notebook as well!
"""
import re
from typing 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-packs/llama-index-packs-gmail-openai-agent/tests/test_packs_gmail_openai_agent.py | llama-index-packs/llama-index-packs-gmail-openai-agent/tests/test_packs_gmail_openai_agent.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.gmail_openai_agent import GmailOpenAIAgentPack
def test_class():
names_of_base_classes = [b.__name__ for b in GmailOpenAIAgentPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-gmail-openai-agent/tests/__init__.py | llama-index-packs/llama-index-packs-gmail-openai-agent/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-packs/llama-index-packs-gmail-openai-agent/llama_index/packs/gmail_openai_agent/__init__.py | llama-index-packs/llama-index-packs-gmail-openai-agent/llama_index/packs/gmail_openai_agent/__init__.py | from llama_index.packs.gmail_openai_agent.base import GmailOpenAIAgentPack
__all__ = ["GmailOpenAIAgentPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-gmail-openai-agent/llama_index/packs/gmail_openai_agent/base.py | llama-index-packs/llama-index-packs-gmail-openai-agent/llama_index/packs/gmail_openai_agent/base.py | """LlamaPack class."""
from typing import Any, Dict
from llama_index.core.llama_pack.base import BaseLlamaPack
# backwards compatibility
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
from llama_index.core.async_utils import asyncio_run
class GmailOpenAIAgentPa... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-self-rag/tests/test_packs_self_rag.py | llama-index-packs/llama-index-packs-self-rag/tests/test_packs_self_rag.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.self_rag import SelfRAGPack
def test_class():
names_of_base_classes = [b.__name__ for b in SelfRAGPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-self-rag/tests/__init__.py | llama-index-packs/llama-index-packs-self-rag/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-packs/llama-index-packs-self-rag/llama_index/packs/self_rag/__init__.py | llama-index-packs/llama-index-packs-self-rag/llama_index/packs/self_rag/__init__.py | from llama_index.packs.self_rag.base import SelfRAGQueryEngine, SelfRAGPack
__all__ = ["SelfRAGPack", "SelfRAGQueryEngine"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-self-rag/llama_index/packs/self_rag/base.py | llama-index-packs/llama-index-packs-self-rag/llama_index/packs/self_rag/base.py | from dataclasses import dataclass
from typing import Any, Dict, List
import numpy as np
from llama_index.core.response import Response
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.bridge.pydantic import Field
from llama_index.core.query_engine import CustomQueryEngine
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-packs/llama-index-packs-snowflake-query-engine/tests/test_packs_snowflake_query_engine.py | llama-index-packs/llama-index-packs-snowflake-query-engine/tests/test_packs_snowflake_query_engine.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.snowflake_query_engine import SnowflakeQueryEnginePack
def test_class():
names_of_base_classes = [b.__name__ for b in SnowflakeQueryEnginePack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-snowflake-query-engine/tests/__init__.py | llama-index-packs/llama-index-packs-snowflake-query-engine/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-packs/llama-index-packs-snowflake-query-engine/llama_index/packs/snowflake_query_engine/__init__.py | llama-index-packs/llama-index-packs-snowflake-query-engine/llama_index/packs/snowflake_query_engine/__init__.py | from llama_index.packs.snowflake_query_engine.base import SnowflakeQueryEnginePack
__all__ = ["SnowflakeQueryEnginePack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-snowflake-query-engine/llama_index/packs/snowflake_query_engine/base.py | llama-index-packs/llama-index-packs-snowflake-query-engine/llama_index/packs/snowflake_query_engine/base.py | """Snowflake Query Engine Pack."""
import os
from typing import Any, Dict, List
from llama_index.core import SQLDatabase
from llama_index.core.indices.struct_store.sql_query import NLSQLTableQueryEngine
from llama_index.core.llama_pack.base import BaseLlamaPack
from sqlalchemy import create_engine
class SnowflakeQu... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-neo4j-query-engine/tests/test_packs_neo4j_query_engine.py | llama-index-packs/llama-index-packs-neo4j-query-engine/tests/test_packs_neo4j_query_engine.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.neo4j_query_engine import Neo4jQueryEnginePack
def test_class():
names_of_base_classes = [b.__name__ for b in Neo4jQueryEnginePack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-neo4j-query-engine/tests/__init__.py | llama-index-packs/llama-index-packs-neo4j-query-engine/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-packs/llama-index-packs-neo4j-query-engine/llama_index/packs/neo4j_query_engine/__init__.py | llama-index-packs/llama-index-packs-neo4j-query-engine/llama_index/packs/neo4j_query_engine/__init__.py | from llama_index.packs.neo4j_query_engine.base import Neo4jQueryEnginePack
__all__ = ["Neo4jQueryEnginePack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-neo4j-query-engine/llama_index/packs/neo4j_query_engine/base.py | llama-index-packs/llama-index-packs-neo4j-query-engine/llama_index/packs/neo4j_query_engine/base.py | """Neo4j Query Engine Pack."""
from enum import Enum
from typing import Any, Dict, List, Optional
from llama_index.core import (
KnowledgeGraphIndex,
QueryBundle,
Settings,
StorageContext,
VectorStoreIndex,
get_response_synthesizer,
)
from llama_index.core.llama_pack.base import BaseLlamaPack
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-zenguard/tests/test_packs_zenguard.py | llama-index-packs/llama-index-packs-zenguard/tests/test_packs_zenguard.py | import os
from typing import Dict
import pytest
from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.zenguard import (
Credentials,
Detector,
ZenGuardConfig,
ZenGuardPack,
)
pytestmark = pytest.mark.skipif(
os.environ.get("ZEN_API_KEY") is None, reason="ZEN_API_KEY not set"... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-zenguard/tests/__init__.py | llama-index-packs/llama-index-packs-zenguard/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-packs/llama-index-packs-zenguard/llama_index/packs/zenguard/__init__.py | llama-index-packs/llama-index-packs-zenguard/llama_index/packs/zenguard/__init__.py | from llama_index.packs.zenguard.base import ZenGuardPack
from zenguard import (
ZenGuardConfig,
Detector,
Credentials,
SupportedLLMs,
)
__all__ = [
"ZenGuardPack",
"ZenGuardConfig",
"Detector",
"Credentials",
"SupportedLLMs",
]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-zenguard/llama_index/packs/zenguard/base.py | llama-index-packs/llama-index-packs-zenguard/llama_index/packs/zenguard/base.py | from typing import Any, Dict, List
from llama_index.core.llama_pack import BaseLlamaPack
from zenguard import ZenGuardConfig, Detector, ZenGuard
class ZenGuardPack(BaseLlamaPack):
def __init__(self, config: ZenGuardConfig):
self._zenguard = ZenGuard(config)
def get_modules(self) -> Dict[str, Any]:
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-timescale-vector-autoretrieval/llama_index/packs/timescale_vector_autoretrieval/__init__.py | llama-index-packs/llama-index-packs-timescale-vector-autoretrieval/llama_index/packs/timescale_vector_autoretrieval/__init__.py | from llama_index.packs.timescale_vector_autoretrieval.base import (
TimescaleVectorAutoretrievalPack,
)
__all__ = ["TimescaleVectorAutoretrievalPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-timescale-vector-autoretrieval/llama_index/packs/timescale_vector_autoretrieval/base.py | llama-index-packs/llama-index-packs-timescale-vector-autoretrieval/llama_index/packs/timescale_vector_autoretrieval/base.py | """Timescale Vector Auto-retrieval Pack."""
from datetime import timedelta
from typing import Any, Dict, List, Optional
from llama_index.core.indices.vector_store import VectorStoreIndex
from llama_index.core.indices.vector_store.retrievers import (
VectorIndexAutoRetriever,
)
from llama_index.core.llama_pack.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-packs/llama-index-packs-deeplake-multimodal-retrieval/tests/test_packs_deeplake_multimodal_retrieval.py | llama-index-packs/llama-index-packs-deeplake-multimodal-retrieval/tests/test_packs_deeplake_multimodal_retrieval.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.deeplake_multimodal_retrieval import (
DeepLakeMultimodalRetrieverPack,
)
def test_class():
names_of_base_classes = [
b.__name__ for b in DeepLakeMultimodalRetrieverPack.__mro__
]
assert BaseLlamaPack.__name__ in 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-packs/llama-index-packs-deeplake-multimodal-retrieval/tests/__init__.py | llama-index-packs/llama-index-packs-deeplake-multimodal-retrieval/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-packs/llama-index-packs-deeplake-multimodal-retrieval/llama_index/packs/deeplake_multimodal_retrieval/__init__.py | llama-index-packs/llama-index-packs-deeplake-multimodal-retrieval/llama_index/packs/deeplake_multimodal_retrieval/__init__.py | from llama_index.packs.deeplake_multimodal_retrieval.base import (
DeepLakeMultimodalRetrieverPack,
)
__all__ = ["DeepLakeMultimodalRetrieverPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-deeplake-multimodal-retrieval/llama_index/packs/deeplake_multimodal_retrieval/base.py | llama-index-packs/llama-index-packs-deeplake-multimodal-retrieval/llama_index/packs/deeplake_multimodal_retrieval/base.py | """DeepLake multimodal Retrieval Pack."""
from typing import Any, Dict, List, Optional
from llama_index.core.indices.multi_modal import MultiModalVectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.query_engine import SimpleMultiModalQueryEngine
from llama_index.core.sche... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-stock-market-data-query-engine/tests/__init__.py | llama-index-packs/llama-index-packs-stock-market-data-query-engine/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-packs/llama-index-packs-stock-market-data-query-engine/tests/test_packs_stock_market_data_query_engine.py | llama-index-packs/llama-index-packs-stock-market-data-query-engine/tests/test_packs_stock_market_data_query_engine.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.stock_market_data_query_engine import (
StockMarketDataQueryEnginePack,
)
def test_class():
names_of_base_classes = [b.__name__ for b in StockMarketDataQueryEnginePack.__mro__]
assert BaseLlamaPack.__name__ in names_of_base_class... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-stock-market-data-query-engine/llama_index/packs/stock_market_data_query_engine/__init__.py | llama-index-packs/llama-index-packs-stock-market-data-query-engine/llama_index/packs/stock_market_data_query_engine/__init__.py | from llama_index.packs.stock_market_data_query_engine.base import (
StockMarketDataQueryEnginePack,
)
__all__ = ["StockMarketDataQueryEnginePack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-stock-market-data-query-engine/llama_index/packs/stock_market_data_query_engine/base.py | llama-index-packs/llama-index-packs-stock-market-data-query-engine/llama_index/packs/stock_market_data_query_engine/base.py | from typing import Any, Dict, List, Optional
from llama_index.core import Settings, VectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.llms.llm import LLM
from llama_index.core.query_engine import PandasQueryEngine, RetrieverQueryEngine
from llama_index.core.response_synt... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-agent-search-retriever/examples/_example.py | llama-index-packs/llama-index-packs-agent-search-retriever/examples/_example.py | # Required Environment Variables: SCIPHI_API_KEY
import os
from llama_index.core.query_engine import RetrieverQueryEngine
from llama_index.packs.agent_search_retriever import AgentSearchRetrieverPack
# create the pack
agent_search_pack = AgentSearchRetrieverPack(
api_key=os.getenv("SCIPHI_API_KEY"),
similarit... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-agent-search-retriever/llama_index/packs/agent_search_retriever/__init__.py | llama-index-packs/llama-index-packs-agent-search-retriever/llama_index/packs/agent_search_retriever/__init__.py | from llama_index.packs.agent_search_retriever.base import (
AgentSearchRetriever,
AgentSearchRetrieverPack,
)
__all__ = ["AgentSearchRetriever", "AgentSearchRetrieverPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-agent-search-retriever/llama_index/packs/agent_search_retriever/base.py | llama-index-packs/llama-index-packs-agent-search-retriever/llama_index/packs/agent_search_retriever/base.py | from enum import Enum
from typing import Any, Dict, List, Optional
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.indices.query.schema import QueryBundle
from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.core.schema import NodeWithScore, TextNode
class Searc... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-arize-phoenix-query-engine/tests/__init__.py | llama-index-packs/llama-index-packs-arize-phoenix-query-engine/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-packs/llama-index-packs-arize-phoenix-query-engine/tests/test_packs_arize_phoenix_query_engine.py | llama-index-packs/llama-index-packs-arize-phoenix-query-engine/tests/test_packs_arize_phoenix_query_engine.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.arize_phoenix_query_engine import (
ArizePhoenixQueryEnginePack,
)
def test_class():
names_of_base_classes = [b.__name__ for b in ArizePhoenixQueryEnginePack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-arize-phoenix-query-engine/examples/example.py | llama-index-packs/llama-index-packs-arize-phoenix-query-engine/examples/example.py | # Required Environment Variables: OPENAI_API_KEY
from llama_index.packs.arize_phoenix_query_engine import ArizePhoenixQueryEnginePack
from llama_index.core.node_parser import SentenceSplitter
from llama_index.readers.web import SimpleWebPageReader
from tqdm.auto import tqdm
# load documents and create the pack
docume... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-arize-phoenix-query-engine/llama_index/packs/arize_phoenix_query_engine/__init__.py | llama-index-packs/llama-index-packs-arize-phoenix-query-engine/llama_index/packs/arize_phoenix_query_engine/__init__.py | from llama_index.packs.arize_phoenix_query_engine.base import (
ArizePhoenixQueryEnginePack,
)
__all__ = ["ArizePhoenixQueryEnginePack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-arize-phoenix-query-engine/llama_index/packs/arize_phoenix_query_engine/base.py | llama-index-packs/llama-index-packs-arize-phoenix-query-engine/llama_index/packs/arize_phoenix_query_engine/base.py | """
Arize-Phoenix LlamaPack.
"""
from typing import TYPE_CHECKING, Any, Dict, List
from llama_index.core import set_global_handler
from llama_index.core.indices.vector_store import VectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.schema import TextNode
if TYPE_CHECKIN... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-dense-x-retrieval/tests/test_packs_dense_x_retrieval.py | llama-index-packs/llama-index-packs-dense-x-retrieval/tests/test_packs_dense_x_retrieval.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.dense_x_retrieval import DenseXRetrievalPack
def test_class():
names_of_base_classes = [b.__name__ for b in DenseXRetrievalPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-dense-x-retrieval/tests/__init__.py | llama-index-packs/llama-index-packs-dense-x-retrieval/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-packs/llama-index-packs-dense-x-retrieval/examples/example.py | llama-index-packs/llama-index-packs-dense-x-retrieval/examples/example.py | # Required Environment Variables: OPENAI_API_KEY
from llama_index.core import SimpleDirectoryReader
from llama_index.packs.dense_x_retrieval import DenseXRetrievalPack
# load documents
documents = SimpleDirectoryReader("./data").load_data()
# uses the LLM to extract propositions from every document/node!
dense_pack ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-dense-x-retrieval/llama_index/packs/dense_x_retrieval/__init__.py | llama-index-packs/llama-index-packs-dense-x-retrieval/llama_index/packs/dense_x_retrieval/__init__.py | from llama_index.packs.dense_x_retrieval.base import DenseXRetrievalPack
__all__ = ["DenseXRetrievalPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-dense-x-retrieval/llama_index/packs/dense_x_retrieval/base.py | llama-index-packs/llama-index-packs-dense-x-retrieval/llama_index/packs/dense_x_retrieval/base.py | import asyncio
import json
from typing import Any, Dict, List, Optional
import yaml
from llama_index.core import Document, Settings, VectorStoreIndex
from llama_index.core.async_utils import run_jobs
from llama_index.core.base.embeddings.base import BaseEmbedding
from llama_index.core.base.response.schema import RESPO... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-llava-completion/tests/__init__.py | llama-index-packs/llama-index-packs-llava-completion/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-packs/llama-index-packs-llava-completion/tests/test_packs_llava_completion.py | llama-index-packs/llama-index-packs-llava-completion/tests/test_packs_llava_completion.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.llava_completion import LlavaCompletionPack
def test_class():
names_of_base_classes = [b.__name__ for b in LlavaCompletionPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-llava-completion/llama_index/packs/llava_completion/__init__.py | llama-index-packs/llama-index-packs-llava-completion/llama_index/packs/llava_completion/__init__.py | from llama_index.packs.llava_completion.base import LlavaCompletionPack
__all__ = ["LlavaCompletionPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-llava-completion/llama_index/packs/llava_completion/base.py | llama-index-packs/llama-index-packs-llava-completion/llama_index/packs/llava_completion/base.py | """Llava Completion Pack."""
from typing import Any, Dict
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.llms.replicate import Replicate
class LlavaCompletionPack(BaseLlamaPack):
"""Llava Completion pack."""
def __init__(
self,
image_url: str,
**kwargs: ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-chroma-autoretrieval/tests/__init__.py | llama-index-packs/llama-index-packs-chroma-autoretrieval/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-packs/llama-index-packs-chroma-autoretrieval/tests/test_packs_chroma_autoretrieval.py | llama-index-packs/llama-index-packs-chroma-autoretrieval/tests/test_packs_chroma_autoretrieval.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.chroma_autoretrieval import ChromaAutoretrievalPack
def test_class():
names_of_base_classes = [b.__name__ for b in ChromaAutoretrievalPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-chroma-autoretrieval/llama_index/packs/chroma_autoretrieval/__init__.py | llama-index-packs/llama-index-packs-chroma-autoretrieval/llama_index/packs/chroma_autoretrieval/__init__.py | from llama_index.packs.chroma_autoretrieval.base import ChromaAutoretrievalPack
__all__ = ["ChromaAutoretrievalPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-chroma-autoretrieval/llama_index/packs/chroma_autoretrieval/base.py | llama-index-packs/llama-index-packs-chroma-autoretrieval/llama_index/packs/chroma_autoretrieval/base.py | """Chroma Auto-retrieval Pack."""
from typing import Any, Dict, List, Optional
from llama_index.core.indices.vector_store import VectorStoreIndex
from llama_index.core.indices.vector_store.retrievers import (
VectorIndexAutoRetriever,
)
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.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-packs/llama-index-packs-evaluator-benchmarker/tests/test_packs_evaluator_benchmarker.py | llama-index-packs/llama-index-packs-evaluator-benchmarker/tests/test_packs_evaluator_benchmarker.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.evaluator_benchmarker import EvaluatorBenchmarkerPack
def test_class():
names_of_base_classes = [b.__name__ for b in EvaluatorBenchmarkerPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-evaluator-benchmarker/tests/__init__.py | llama-index-packs/llama-index-packs-evaluator-benchmarker/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-packs/llama-index-packs-evaluator-benchmarker/llama_index/packs/evaluator_benchmarker/__init__.py | llama-index-packs/llama-index-packs-evaluator-benchmarker/llama_index/packs/evaluator_benchmarker/__init__.py | from llama_index.packs.evaluator_benchmarker.base import EvaluatorBenchmarkerPack
__all__ = ["EvaluatorBenchmarkerPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-evaluator-benchmarker/llama_index/packs/evaluator_benchmarker/base.py | llama-index-packs/llama-index-packs-evaluator-benchmarker/llama_index/packs/evaluator_benchmarker/base.py | import warnings
from typing import Union
import numpy as np
import pandas as pd
from llama_index.core.evaluation import BaseEvaluator
from llama_index.core.llama_dataset.evaluator_evaluation import (
EvaluatorPredictionDataset,
LabelledEvaluatorDataset,
LabelledPairwiseEvaluatorDataset,
PairwiseEvaluat... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-mixture-of-agents/tests/__init__.py | llama-index-packs/llama-index-packs-mixture-of-agents/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-packs/llama-index-packs-mixture-of-agents/tests/test_packs_mixture_of_agents.py | llama-index-packs/llama-index-packs-mixture-of-agents/tests/test_packs_mixture_of_agents.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.mixture_of_agents import MixtureOfAgentsPack
def test_class():
names_of_base_classes = [b.__name__ for b in MixtureOfAgentsPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-mixture-of-agents/llama_index/packs/mixture_of_agents/__init__.py | llama-index-packs/llama-index-packs-mixture-of-agents/llama_index/packs/mixture_of_agents/__init__.py | from llama_index.packs.mixture_of_agents.base import MixtureOfAgentsPack
__all__ = ["MixtureOfAgentsPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-mixture-of-agents/llama_index/packs/mixture_of_agents/base.py | llama-index-packs/llama-index-packs-mixture-of-agents/llama_index/packs/mixture_of_agents/base.py | # Reference: https://github.com/togethercomputer/MoA
import logging
from typing import Any, Dict, List, Union
import copy
import sys
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.llms.llm import LLM
from llama_index.core.llms import ChatMessage
from llama_index.core.async_utils 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-packs/llama-index-packs-trulens-eval-packs/tests/__init__.py | llama-index-packs/llama-index-packs-trulens-eval-packs/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-packs/llama-index-packs-trulens-eval-packs/tests/test_packs_trulens_eval_packs.py | llama-index-packs/llama-index-packs-trulens-eval-packs/tests/test_packs_trulens_eval_packs.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.trulens_eval_packs import (
TruLensHarmlessPack,
TruLensHelpfulPack,
TruLensRAGTriadPack,
)
def test_class():
names_of_base_classes = [b.__name__ for b in TruLensHarmlessPack.__mro__]
assert BaseLlamaPack.__name__ in 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-packs/llama-index-packs-trulens-eval-packs/llama_index/packs/trulens_eval_packs/__init__.py | llama-index-packs/llama-index-packs-trulens-eval-packs/llama_index/packs/trulens_eval_packs/__init__.py | from llama_index.packs.trulens_eval_packs.base import (
TruLensHarmlessPack,
TruLensHelpfulPack,
TruLensRAGTriadPack,
)
__all__ = ["TruLensRAGTriadPack", "TruLensHarmlessPack", "TruLensHelpfulPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-trulens-eval-packs/llama_index/packs/trulens_eval_packs/base.py | llama-index-packs/llama-index-packs-trulens-eval-packs/llama_index/packs/trulens_eval_packs/base.py | """
TruLens-Eval LlamaPack.
"""
from typing import Any, Dict, List
from llama_index.core.indices.vector_store import VectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.schema import TextNode
class TruLensRAGTriadPack(BaseLlamaPack):
"""
The TruLens-Eval RAG Tri... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-sentence-window-retriever/tests/__init__.py | llama-index-packs/llama-index-packs-sentence-window-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-packs/llama-index-packs-sentence-window-retriever/tests/test_packs_sentence_window_retriever.py | llama-index-packs/llama-index-packs-sentence-window-retriever/tests/test_packs_sentence_window_retriever.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.sentence_window_retriever import SentenceWindowRetrieverPack
def test_class():
names_of_base_classes = [b.__name__ for b in SentenceWindowRetrieverPack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-sentence-window-retriever/llama_index/packs/sentence_window_retriever/__init__.py | llama-index-packs/llama-index-packs-sentence-window-retriever/llama_index/packs/sentence_window_retriever/__init__.py | from llama_index.packs.sentence_window_retriever.base import SentenceWindowRetrieverPack
__all__ = ["SentenceWindowRetrieverPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-sentence-window-retriever/llama_index/packs/sentence_window_retriever/base.py | llama-index-packs/llama-index-packs-sentence-window-retriever/llama_index/packs/sentence_window_retriever/base.py | """Sentence window retriever."""
from typing import Any, Dict, List
from llama_index.core import Settings, VectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.node_parser import (
SentenceWindowNodeParser,
)
from llama_index.core.postprocessor import MetadataReplaceme... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-searchain/tests/test_packs_searchain.py | llama-index-packs/llama-index-packs-searchain/tests/test_packs_searchain.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.searchain.base import _normalize_answer, _match_or_not
from llama_index.packs.searchain.base import _have_seen_or_not
from unittest.mock import patch, MagicMock
from llama_index.packs.searchain.base import SearChainPack, ChatMessage
def test... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-searchain/tests/__init__.py | llama-index-packs/llama-index-packs-searchain/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-packs/llama-index-packs-searchain/llama_index/packs/searchain/__init__.py | llama-index-packs/llama-index-packs-searchain/llama_index/packs/searchain/__init__.py | from llama_index.packs.searchain.base import SearChainPack
__all__ = ["SearChainPack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-searchain/llama_index/packs/searchain/base.py | llama-index-packs/llama-index-packs-searchain/llama_index/packs/searchain/base.py | import regex
import string
import json
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
from llama_index.llms.openai import OpenAI
from llama_index.core.llms import ChatMessage
from transformers import DPRReader, DPRReaderTokenizer
import to... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-retry-engine-weaviate/tests/__init__.py | llama-index-packs/llama-index-packs-retry-engine-weaviate/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-packs/llama-index-packs-retry-engine-weaviate/tests/test_packs_retry_engine_weaviate.py | llama-index-packs/llama-index-packs-retry-engine-weaviate/tests/test_packs_retry_engine_weaviate.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.retry_engine_weaviate import WeaviateRetryEnginePack
def test_class():
names_of_base_classes = [b.__name__ for b in WeaviateRetryEnginePack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-retry-engine-weaviate/llama_index/packs/retry_engine_weaviate/__init__.py | llama-index-packs/llama-index-packs-retry-engine-weaviate/llama_index/packs/retry_engine_weaviate/__init__.py | from llama_index.packs.retry_engine_weaviate.base import WeaviateRetryEnginePack
__all__ = ["WeaviateRetryEnginePack"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-retry-engine-weaviate/llama_index/packs/retry_engine_weaviate/base.py | llama-index-packs/llama-index-packs-retry-engine-weaviate/llama_index/packs/retry_engine_weaviate/base.py | """Weaviate Retry query engine pack."""
from typing import Any, Dict, List, Optional
from llama_index.core.evaluation.guideline import DEFAULT_GUIDELINES, GuidelineEvaluator
from llama_index.core.indices.vector_store import VectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.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-packs/llama-index-packs-nebulagraph-query-engine/tests/test_packs_nebulagraph_query_engine.py | llama-index-packs/llama-index-packs-nebulagraph-query-engine/tests/test_packs_nebulagraph_query_engine.py | from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.nebulagraph_query_engine import NebulaGraphQueryEnginePack
def test_class():
names_of_base_classes = [b.__name__ for b in NebulaGraphQueryEnginePack.__mro__]
assert BaseLlamaPack.__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-packs/llama-index-packs-nebulagraph-query-engine/tests/__init__.py | llama-index-packs/llama-index-packs-nebulagraph-query-engine/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-packs/llama-index-packs-nebulagraph-query-engine/llama_index/packs/nebulagraph_query_engine/__init__.py | llama-index-packs/llama-index-packs-nebulagraph-query-engine/llama_index/packs/nebulagraph_query_engine/__init__.py | from llama_index.packs.nebulagraph_query_engine.base import NebulaGraphQueryEnginePack
__all__ = ["NebulaGraphQueryEnginePack"]
| 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.