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-nebulagraph-query-engine/llama_index/packs/nebulagraph_query_engine/base.py
llama-index-packs/llama-index-packs-nebulagraph-query-engine/llama_index/packs/nebulagraph_query_engine/base.py
"""NebulaGraph Query Engine Pack.""" import os 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 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-packs/llama-index-packs-streamlit-chatbot/tests/test_packs_streamlit_chatbot.py
llama-index-packs/llama-index-packs-streamlit-chatbot/tests/test_packs_streamlit_chatbot.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.streamlit_chatbot import StreamlitChatPack def test_class(): names_of_base_classes = [b.__name__ for b in StreamlitChatPack.__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-streamlit-chatbot/tests/__init__.py
llama-index-packs/llama-index-packs-streamlit-chatbot/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-streamlit-chatbot/llama_index/packs/streamlit_chatbot/__init__.py
llama-index-packs/llama-index-packs-streamlit-chatbot/llama_index/packs/streamlit_chatbot/__init__.py
from llama_index.packs.streamlit_chatbot.base import StreamlitChatPack __all__ = ["StreamlitChatPack"]
python
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-streamlit-chatbot/llama_index/packs/streamlit_chatbot/base.py
llama-index-packs/llama-index-packs-streamlit-chatbot/llama_index/packs/streamlit_chatbot/base.py
import asyncio from typing import Any, Dict from llama_index.core import ( Settings, VectorStoreIndex, ) from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.llms.openai import OpenAI from llama_index.readers.wikipedia import WikipediaReader # Create a new event loop loop = asyncio.new_...
python
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-panel-chatbot/tests/__init__.py
llama-index-packs/llama-index-packs-panel-chatbot/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-panel-chatbot/tests/test_packs_panel_chatbot.py
llama-index-packs/llama-index-packs-panel-chatbot/tests/test_packs_panel_chatbot.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.panel_chatbot import PanelChatPack def test_class(): names_of_base_classes = [b.__name__ for b in PanelChatPack.__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-panel-chatbot/llama_index/packs/panel_chatbot/__init__.py
llama-index-packs/llama-index-packs-panel-chatbot/llama_index/packs/panel_chatbot/__init__.py
from llama_index.packs.panel_chatbot.base import PanelChatPack __all__ = ["PanelChatPack"]
python
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-panel-chatbot/llama_index/packs/panel_chatbot/base.py
llama-index-packs/llama-index-packs-panel-chatbot/llama_index/packs/panel_chatbot/base.py
"""Provides the PanelChatPack.""" import os from typing import Any, Dict from llama_index.core.llama_pack.base import BaseLlamaPack ENVIRONMENT_VARIABLES = [ "GITHUB_TOKEN", "OPENAI_API_KEY", ] class PanelChatPack(BaseLlamaPack): """Panel chatbot pack.""" 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-panel-chatbot/llama_index/packs/panel_chatbot/app.py
llama-index-packs/llama-index-packs-panel-chatbot/llama_index/packs/panel_chatbot/app.py
"""Provides a ChatBot UI for a Github Repository. Powered by Llama Index and Panel.""" import os import pickle from pathlib import Path import nest_asyncio import panel as pn import param from llama_index.core import VectorStoreIndex from llama_index.readers.github import GithubClient, GithubRepositoryReader # neede...
python
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-diff-private-simple-dataset/tests/test_packs_diff_private_examples_gen.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/tests/test_packs_diff_private_examples_gen.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.diff_private_simple_dataset import DiffPrivateSimpleDatasetPack def test_class(): names_of_base_classes = [b.__name__ for b in DiffPrivateSimpleDatasetPack.__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-diff-private-simple-dataset/tests/__init__.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/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-diff-private-simple-dataset/tests/test_templates.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/tests/test_templates.py
from llama_index.core.llama_dataset.simple import ( LabelledSimpleDataExample, ) from llama_index.packs.diff_private_simple_dataset.templates import ( few_shot_completion_template, single_example_template, ) from llama_index.packs.diff_private_simple_dataset.base import PromptBundle from functools import re...
python
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-diff-private-simple-dataset/examples/symptom_2_disease/_download_raw_symptom_2_disease_data.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/examples/symptom_2_disease/_download_raw_symptom_2_disease_data.py
"""Download the raw Symptom2Disease csv file.""" import os from llama_index.core.download.utils import get_file_content from pathlib import Path DATASET_DROPBOX_LINK = "https://www.dropbox.com/scl/fi/2edfoyaimxds21yylqqpv/Symptom2Disease.csv?rlkey=1pj586zloa7np3klgxn7z1qwh&dl=1" def download_dataset_from_dropbox()...
python
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-diff-private-simple-dataset/examples/symptom_2_disease/_create_symptom_2_disease_simple_dataset.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/examples/symptom_2_disease/_create_symptom_2_disease_simple_dataset.py
"""Creates a `LabelledSimpleDataset` version of the Symptom2Dataset.""" import os import pandas as pd from llama_index.core.llama_dataset.simple import ( LabelledSimpleDataExample, LabelledSimpleDataset, ) from llama_index.core.llama_dataset.base import CreatedBy, CreatedByType from sklearn.model_selection imp...
python
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-diff-private-simple-dataset/examples/symptom_2_disease/main.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/examples/symptom_2_disease/main.py
import llama_index.core.instrumentation as instrument from llama_index.core.llama_dataset.simple import LabelledSimpleDataset from llama_index.packs.diff_private_simple_dataset.base import PromptBundle from llama_index.packs.diff_private_simple_dataset import DiffPrivateSimpleDatasetPack from llama_index.llms.openai im...
python
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-diff-private-simple-dataset/examples/symptom_2_disease/event_handler.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/examples/symptom_2_disease/event_handler.py
from typing import Dict from llama_index.core.instrumentation.event_handlers import BaseEventHandler from llama_index.packs.diff_private_simple_dataset.events import ( SyntheticExampleStartEvent, SyntheticExampleEndEvent, LLMEmptyResponseEvent, EmptyIntersectionEvent, ) import json class TooManyProble...
python
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-diff-private-simple-dataset/examples/symptom_2_disease/__init__.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/examples/symptom_2_disease/__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-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/templates.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/templates.py
from llama_index.core import PromptTemplate ZERO_SHOT_COMPLETION_TEMPLATE = ( "{instruction}\n{label_heading}: {label}\n{text_heading}: {synthetic_text}" ) zero_shot_completion_template = PromptTemplate(ZERO_SHOT_COMPLETION_TEMPLATE) SINGLE_EXAMPLE_TEMPLATE = ( "{label_heading}: {example_label}\n{text_heading...
python
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-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/events.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/events.py
from typing import List from llama_index.core.instrumentation.events import BaseEvent class LLMEmptyResponseEvent(BaseEvent): @classmethod def class_name(cls): """Class name.""" return "LLMEmptyResponseEvent" class EmptyIntersectionEvent(BaseEvent): public_tokens: List[str] private_t...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/__init__.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/__init__.py
from llama_index.packs.diff_private_simple_dataset.base import ( DiffPrivateSimpleDatasetPack, ) __all__ = ["DiffPrivateSimpleDatasetPack"]
python
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-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/base.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/base.py
import asyncio import math import numpy as np import random import tqdm from functools import reduce from typing import Any, List, Dict, Sequence, Union, Coroutine, Iterable from llama_index.core.async_utils import asyncio_module from llama_index.core.bridge.pydantic import BaseModel, Field from llama_index.core.llms ...
python
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-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/privacy_mechanism.py
llama-index-packs/llama-index-packs-diff-private-simple-dataset/llama_index/packs/diff_private_simple_dataset/privacy_mechanism.py
from enum import Enum class PrivacyMechanism(str, Enum): """Enum for available privacy mechanism.""" EXPONENTIAL = "exponential" GAUSSIAN = "gaussian"
python
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-raptor/tests_llamadev_ignore/__init__.py
llama-index-packs/llama-index-packs-raptor/tests_llamadev_ignore/__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-raptor/tests_llamadev_ignore/test_packs_raptor.py
llama-index-packs/llama-index-packs-raptor/tests_llamadev_ignore/test_packs_raptor.py
from llama_index.core import Document, MockEmbedding from llama_index.core.llms import MockLLM from llama_index.packs.raptor.base import RaptorRetriever def test_raptor() -> None: retriever = RaptorRetriever( [ Document(text="one"), Document(text="two"), Document(text="...
python
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-raptor/llama_index/packs/raptor/clustering.py
llama-index-packs/llama-index-packs-raptor/llama_index/packs/raptor/clustering.py
""" Minorly tweaked from https://github.com/parthsarthi03/raptor/blob/master/raptor/cluster_tree_builder.py. Full credits to the original authors! """ import numpy as np import random import umap from sklearn.mixture import GaussianMixture from typing import Dict, List, Optional, Callable from llama_index.core 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-packs/llama-index-packs-raptor/llama_index/packs/raptor/__init__.py
llama-index-packs/llama-index-packs-raptor/llama_index/packs/raptor/__init__.py
from llama_index.packs.raptor.base import RaptorPack, RaptorRetriever __all__ = ["RaptorPack", "RaptorRetriever"]
python
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-raptor/llama_index/packs/raptor/base.py
llama-index-packs/llama-index-packs-raptor/llama_index/packs/raptor/base.py
from typing import Any, Dict, List, Optional import asyncio from enum import Enum from llama_index.core import ( StorageContext, VectorStoreIndex, get_response_synthesizer, load_index_from_storage, ) from llama_index.core.base.response.schema import Response from llama_index.core.base.base_retriever i...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-code-hierarchy/tests/test_query_engine.py
llama-index-packs/llama-index-packs-code-hierarchy/tests/test_query_engine.py
"""Test CodeHierarchyNodeParser reading itself.""" from typing import Sequence import pytest from llama_index.core import SimpleDirectoryReader from pytest import fixture from llama_index.packs.code_hierarchy import CodeHierarchyNodeParser from llama_index.core.text_splitter import CodeSplitter from pathlib import Pa...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-code-hierarchy/tests/conftest.py
llama-index-packs/llama-index-packs-code-hierarchy/tests/conftest.py
# needed for pants to detect the tree-sitter-language-pack dependency import tree_sitter_language_pack # noqa
python
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-code-hierarchy/tests/__init__.py
llama-index-packs/llama-index-packs-code-hierarchy/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-code-hierarchy/tests/test_utility_methods.py
llama-index-packs/llama-index-packs-code-hierarchy/tests/test_utility_methods.py
import pytest from llama_index.packs.code_hierarchy import CodeHierarchyNodeParser def test_space_indentation() -> None: text = """\ def function(): print("First level of indentation") if True: print("Second level of indentation") """ ( indent_char, count_per_indent, fi...
python
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-code-hierarchy/tests/test_code_parse_nodes_special_characters.py
llama-index-packs/llama-index-packs-code-hierarchy/tests/test_code_parse_nodes_special_characters.py
"""Test CodeHierarchyNodeParser with a special character on the code.""" from typing import List from llama_index.packs.code_hierarchy import CodeHierarchyNodeParser from llama_index.core.schema import TextNode def test_special_character() -> None: """Test case for code splitting using python and add a special ...
python
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-code-hierarchy/tests/test_code_hierarchy_no_skeleton.py
llama-index-packs/llama-index-packs-code-hierarchy/tests/test_code_hierarchy_no_skeleton.py
"""Test CodeHierarchyNodeParser with skeleton option set to False.""" import os from typing import List, cast from llama_index.packs.code_hierarchy import CodeHierarchyNodeParser from llama_index.core.schema import NodeRelationship, RelatedNodeInfo, TextNode def test_python_code_splitter() -> None: """Test case...
python
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-code-hierarchy/tests/test_code_hierarchy_with_skeleton.py
llama-index-packs/llama-index-packs-code-hierarchy/tests/test_code_hierarchy_with_skeleton.py
"""Test CodeHierarchyNodeParser with skeleton option set to False.""" import os from typing import List, cast from llama_index.packs.code_hierarchy import CodeHierarchyNodeParser from llama_index.core.schema import NodeRelationship, RelatedNodeInfo, TextNode def test_python_code_splitter() -> None: """Test case...
python
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-code-hierarchy/llama_index/packs/code_hierarchy/code_hierarchy.py
llama-index-packs/llama-index-packs-code-hierarchy/llama_index/packs/code_hierarchy/code_hierarchy.py
import os from collections import defaultdict from enum import Enum from tree_sitter import Node from typing import Any, Dict, List, Optional, Sequence, Tuple from llama_index.core.bridge.pydantic import BaseModel, Field from llama_index.core.callbacks.base import CallbackManager from llama_index.core.extractors.met...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
true
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-code-hierarchy/llama_index/packs/code_hierarchy/__init__.py
llama-index-packs/llama-index-packs-code-hierarchy/llama_index/packs/code_hierarchy/__init__.py
from llama_index.packs.code_hierarchy.base import CodeHierarchyAgentPack from llama_index.packs.code_hierarchy.code_hierarchy import CodeHierarchyNodeParser from llama_index.packs.code_hierarchy.query_engine import ( CodeHierarchyKeywordQueryEngine, ) __all__ = [ "CodeHierarchyAgentPack", "CodeHierarchyNod...
python
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-code-hierarchy/llama_index/packs/code_hierarchy/base.py
llama-index-packs/llama-index-packs-code-hierarchy/llama_index/packs/code_hierarchy/base.py
from typing import Any, Dict, List from llama_index.core.agent.workflow import FunctionAgent from llama_index.core.llama_pack import BaseLlamaPack from llama_index.core.schema import BaseNode from llama_index.llms.openai import OpenAI from llama_index.core.tools import QueryEngineTool from llama_index.core.async_utils...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-code-hierarchy/llama_index/packs/code_hierarchy/query_engine.py
llama-index-packs/llama-index-packs-code-hierarchy/llama_index/packs/code_hierarchy/query_engine.py
from pathlib import Path import re from typing import Any, Dict, Sequence, Optional, Set, Tuple, TYPE_CHECKING if TYPE_CHECKING: from llama_index.core.langchain_helpers.agents import LlamaIndexTool from llama_index.core.query_engine import CustomQueryEngine from llama_index.core.schema import BaseNode 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-llama-dataset-metadata/tests/test_packs_llama_dataset_metadata.py
llama-index-packs/llama-index-packs-llama-dataset-metadata/tests/test_packs_llama_dataset_metadata.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.llama_dataset_metadata import LlamaDatasetMetadataPack def test_class(): names_of_base_classes = [b.__name__ for b in LlamaDatasetMetadataPack.__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-llama-dataset-metadata/tests/__init__.py
llama-index-packs/llama-index-packs-llama-dataset-metadata/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-llama-dataset-metadata/llama_index/packs/llama_dataset_metadata/__init__.py
llama-index-packs/llama-index-packs-llama-dataset-metadata/llama_index/packs/llama_dataset_metadata/__init__.py
from llama_index.packs.llama_dataset_metadata.base import LlamaDatasetMetadataPack __all__ = ["LlamaDatasetMetadataPack"]
python
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-llama-dataset-metadata/llama_index/packs/llama_dataset_metadata/base.py
llama-index-packs/llama-index-packs-llama-dataset-metadata/llama_index/packs/llama_dataset_metadata/base.py
import json from typing import List, Optional, TYPE_CHECKING import pandas as pd from llama_index.core.bridge.pydantic import BaseModel from llama_index.core.download.module import LLAMA_HUB_URL from llama_index.core.download.utils import get_file_content from llama_index.core.indices.base import BaseIndex 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-raft-dataset/tests/test_packs_raft_dataset.py
llama-index-packs/llama-index-packs-raft-dataset/tests/test_packs_raft_dataset.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.raft_dataset import RAFTDatasetPack def test_class(): names_of_base_classes = [b.__name__ for b in RAFTDatasetPack.__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-raft-dataset/tests/__init__.py
llama-index-packs/llama-index-packs-raft-dataset/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-raft-dataset/llama_index/packs/raft_dataset/__init__.py
llama-index-packs/llama-index-packs-raft-dataset/llama_index/packs/raft_dataset/__init__.py
from llama_index.packs.raft_dataset.base import RAFTDatasetPack __all__ = ["RAFTDatasetPack"]
python
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-raft-dataset/llama_index/packs/raft_dataset/base.py
llama-index-packs/llama-index-packs-raft-dataset/llama_index/packs/raft_dataset/base.py
"""RAFT Dataset LlamaPack class.""" # Inspired from https://github.com/ShishirPatil/gorilla/tree/main/raft from typing import Any, List import random import logging import warnings from datasets import Dataset # Configure logging to output to the console, with messages of level DEBUG and above logger = logging.getL...
python
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-fusion-retriever/tests/test_packs_fusion_retriever.py
llama-index-packs/llama-index-packs-fusion-retriever/tests/test_packs_fusion_retriever.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.fusion_retriever import ( HybridFusionRetrieverPack, QueryRewritingRetrieverPack, ) def test_class(): names_of_base_classes = [b.__name__ for b in HybridFusionRetrieverPack.__mro__] assert BaseLlamaPack.__name__ in names_of_b...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-fusion-retriever/tests/__init__.py
llama-index-packs/llama-index-packs-fusion-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-fusion-retriever/examples/hybrid_fusion/example.py
llama-index-packs/llama-index-packs-fusion-retriever/examples/hybrid_fusion/example.py
# Required Environment Variables: OPENAI_API_KEY from llama_index.core.llama_pack import download_llama_pack from llama_index.core import SimpleDirectoryReader # download and install dependencies HybridFusionRetrieverPack = download_llama_pack( "HybridFusionRetrieverPack", "./hybrid_fusion_pack" ) # load documen...
python
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-fusion-retriever/examples/query_rewrite/example.py
llama-index-packs/llama-index-packs-fusion-retriever/examples/query_rewrite/example.py
# Required Environment Variables: OPENAI_API_KEY from llama_index.core.llama_pack import download_llama_pack from llama_index.core import SimpleDirectoryReader # download and install dependencies QueryRewritingRetrieverPack = download_llama_pack( "QueryRewritingRetrieverPack", "./query_rewriting_pack" ) # load d...
python
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-fusion-retriever/llama_index/packs/fusion_retriever/__init__.py
llama-index-packs/llama-index-packs-fusion-retriever/llama_index/packs/fusion_retriever/__init__.py
from llama_index.packs.fusion_retriever.hybrid_fusion.base import ( HybridFusionRetrieverPack, ) from llama_index.packs.fusion_retriever.query_rewrite.base import ( QueryRewritingRetrieverPack, ) __all__ = ["HybridFusionRetrieverPack", "QueryRewritingRetrieverPack"]
python
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-fusion-retriever/llama_index/packs/fusion_retriever/hybrid_fusion/__init__.py
llama-index-packs/llama-index-packs-fusion-retriever/llama_index/packs/fusion_retriever/hybrid_fusion/__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-fusion-retriever/llama_index/packs/fusion_retriever/hybrid_fusion/base.py
llama-index-packs/llama-index-packs-fusion-retriever/llama_index/packs/fusion_retriever/hybrid_fusion/base.py
"""Hybrid Fusion Retriever Pack.""" import os from typing import Any, Dict, List from llama_index.core import Settings 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...
python
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-fusion-retriever/llama_index/packs/fusion_retriever/query_rewrite/__init__.py
llama-index-packs/llama-index-packs-fusion-retriever/llama_index/packs/fusion_retriever/query_rewrite/__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-fusion-retriever/llama_index/packs/fusion_retriever/query_rewrite/base.py
llama-index-packs/llama-index-packs-fusion-retriever/llama_index/packs/fusion_retriever/query_rewrite/base.py
"""Query Rewriting Retriever Pack.""" from typing import Any, Dict, List from llama_index.core import Settings 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.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-recursive-retriever/tests/test_packs_recursive_retriever.py
llama-index-packs/llama-index-packs-recursive-retriever/tests/test_packs_recursive_retriever.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.recursive_retriever import ( EmbeddedTablesUnstructuredRetrieverPack, RecursiveRetrieverSmallToBigPack, ) def test_class(): names_of_base_classes = [ b.__name__ for b in EmbeddedTablesUnstructuredRetrieverPack.__mro__ ...
python
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-recursive-retriever/tests/__init__.py
llama-index-packs/llama-index-packs-recursive-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-recursive-retriever/llama_index/packs/recursive_retriever/__init__.py
llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/__init__.py
from llama_index.packs.recursive_retriever.embedded_tables_unstructured.base import ( EmbeddedTablesUnstructuredRetrieverPack, ) from llama_index.packs.recursive_retriever.small_to_big.base import ( RecursiveRetrieverSmallToBigPack, ) __all__ = [ "EmbeddedTablesUnstructuredRetrieverPack", "RecursiveRet...
python
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-recursive-retriever/llama_index/packs/recursive_retriever/embedded_tables_unstructured/__init__.py
llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/embedded_tables_unstructured/__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-recursive-retriever/llama_index/packs/recursive_retriever/embedded_tables_unstructured/base.py
llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/embedded_tables_unstructured/base.py
"""Embedded Tables Retriever w/ Unstructured.IO.""" import os import pickle from pathlib import Path from typing import Any, Dict, Optional from llama_index.core import VectorStoreIndex from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.node_parser import UnstructuredElementNodeParser fr...
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false
run-llama/llama_index
https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/small_to_big/__init__.py
llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/small_to_big/__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-recursive-retriever/llama_index/packs/recursive_retriever/small_to_big/base.py
llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/small_to_big/base.py
"""Recursive retriever (with node references).""" from typing import Any, Dict, List from llama_index.core import Settings, VectorStoreIndex from llama_index.core.embeddings.utils import resolve_embed_model from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.node_parser import SentenceSpl...
python
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-auto-merging-retriever/tests/__init__.py
llama-index-packs/llama-index-packs-auto-merging-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-auto-merging-retriever/tests/test_packs_auto_merging_retriever.py
llama-index-packs/llama-index-packs-auto-merging-retriever/tests/test_packs_auto_merging_retriever.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.auto_merging_retriever import AutoMergingRetrieverPack def test_class(): names_of_base_classes = [b.__name__ for b in AutoMergingRetrieverPack.__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-auto-merging-retriever/examples/example.py
llama-index-packs/llama-index-packs-auto-merging-retriever/examples/example.py
from pathlib import Path from llama_index.readers.file.docs import PDFReader from llama_index.packs.auto_merging_retriever import AutoMergingRetrieverPack # get documents from any data loader loader = PDFReader() document_path = Path("./data/101.pdf") # replace with your own document documents = loader.load_data(file...
python
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-auto-merging-retriever/llama_index/packs/auto_merging_retriever/__init__.py
llama-index-packs/llama-index-packs-auto-merging-retriever/llama_index/packs/auto_merging_retriever/__init__.py
from llama_index.packs.auto_merging_retriever.base import AutoMergingRetrieverPack __all__ = ["AutoMergingRetrieverPack"]
python
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-auto-merging-retriever/llama_index/packs/auto_merging_retriever/base.py
llama-index-packs/llama-index-packs-auto-merging-retriever/llama_index/packs/auto_merging_retriever/base.py
"""Auto Merging Retriever.""" from typing import Any, Dict, List from llama_index.core import VectorStoreIndex from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.node_parser import ( HierarchicalNodeParser, get_leaf_nodes, ) from llama_index.core.query_engine import RetrieverQuer...
python
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-fuzzy-citation/tests/test_packs_fuzzy_citation.py
llama-index-packs/llama-index-packs-fuzzy-citation/tests/test_packs_fuzzy_citation.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.fuzzy_citation import FuzzyCitationEnginePack def test_class(): names_of_base_classes = [b.__name__ for b in FuzzyCitationEnginePack.__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-fuzzy-citation/tests/__init__.py
llama-index-packs/llama-index-packs-fuzzy-citation/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-fuzzy-citation/llama_index/packs/fuzzy_citation/__init__.py
llama-index-packs/llama-index-packs-fuzzy-citation/llama_index/packs/fuzzy_citation/__init__.py
from llama_index.packs.fuzzy_citation.base import FuzzyCitationEnginePack __all__ = ["FuzzyCitationEnginePack"]
python
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-fuzzy-citation/llama_index/packs/fuzzy_citation/base.py
llama-index-packs/llama-index-packs-fuzzy-citation/llama_index/packs/fuzzy_citation/base.py
from collections import defaultdict from typing import Any, Dict from llama_index.core.base.response.schema import RESPONSE_TYPE from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.node_parser.text.utils import split_by_sentence_tokenizer from llama_index.core.query_engine import BaseQuery...
python
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-llama-guard-moderator/tests/test_packs_llama_guard_moderator.py
llama-index-packs/llama-index-packs-llama-guard-moderator/tests/test_packs_llama_guard_moderator.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.llama_guard_moderator import LlamaGuardModeratorPack def test_class(): names_of_base_classes = [b.__name__ for b in LlamaGuardModeratorPack.__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-llama-guard-moderator/tests/__init__.py
llama-index-packs/llama-index-packs-llama-guard-moderator/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-llama-guard-moderator/llama_index/packs/llama_guard_moderator/__init__.py
llama-index-packs/llama-index-packs-llama-guard-moderator/llama_index/packs/llama_guard_moderator/__init__.py
from llama_index.packs.llama_guard_moderator.base import LlamaGuardModeratorPack __all__ = ["LlamaGuardModeratorPack"]
python
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-llama-guard-moderator/llama_index/packs/llama_guard_moderator/base.py
llama-index-packs/llama-index-packs-llama-guard-moderator/llama_index/packs/llama_guard_moderator/base.py
"""LlamaPack class.""" from typing import Any, Dict from llama_index.core.llama_pack.base import BaseLlamaPack DEFAULT_TAXONOMY = """01: Violence and Hate. Should not - Help people plan or engage in violence. - Encourage people to engage in violence. - Express hateful, derogatory, or demeaning sentiments against peo...
python
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-discover/tests/test_packs_self_discover.py
llama-index-packs/llama-index-packs-self-discover/tests/test_packs_self_discover.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.self_discover import SelfDiscoverPack def test_class(): names_of_base_classes = [b.__name__ for b in SelfDiscoverPack.__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-discover/tests/__init__.py
llama-index-packs/llama-index-packs-self-discover/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-discover/llama_index/packs/self_discover/__init__.py
llama-index-packs/llama-index-packs-self-discover/llama_index/packs/self_discover/__init__.py
from llama_index.packs.self_discover.base import SelfDiscoverPack __all__ = ["SelfDiscoverPack"]
python
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-discover/llama_index/packs/self_discover/base.py
llama-index-packs/llama-index-packs-self-discover/llama_index/packs/self_discover/base.py
from typing import Any, Dict, Optional from llama_index.core.async_utils import asyncio_run from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.prompts import PromptTemplate from llama_index.core.llms import LLM from llama_index.core.workflow import ( Workflow, StartEvent, Stop...
python
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-rag-evaluator/tests/__init__.py
llama-index-packs/llama-index-packs-rag-evaluator/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-rag-evaluator/tests/test_packs_rag_evaluator.py
llama-index-packs/llama-index-packs-rag-evaluator/tests/test_packs_rag_evaluator.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.rag_evaluator import RagEvaluatorPack def test_class(): names_of_base_classes = [b.__name__ for b in RagEvaluatorPack.__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-rag-evaluator/examples/example.py
llama-index-packs/llama-index-packs-rag-evaluator/examples/example.py
# Required Environment Variables: OPENAI_API_KEY from llama_index.core import VectorStoreIndex from llama_index.core.llama_dataset import download_llama_dataset from llama_index.packs.rag_evaluator import RagEvaluatorPack # download a LabelledRagDataset from llama-hub rag_dataset, documents = download_llama_dataset( ...
python
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-rag-evaluator/llama_index/packs/rag_evaluator/__init__.py
llama-index-packs/llama-index-packs-rag-evaluator/llama_index/packs/rag_evaluator/__init__.py
from llama_index.packs.rag_evaluator.base import RagEvaluatorPack __all__ = ["RagEvaluatorPack"]
python
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-rag-evaluator/llama_index/packs/rag_evaluator/base.py
llama-index-packs/llama-index-packs-rag-evaluator/llama_index/packs/rag_evaluator/base.py
import asyncio import json import time import warnings from collections import deque from typing import Any, List, Optional import os from pathlib import Path import pandas as pd import tqdm from llama_index.core.evaluation import ( CorrectnessEvaluator, EvaluationResult, FaithfulnessEvaluator, Relevan...
python
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-zephyr-query-engine/tests/__init__.py
llama-index-packs/llama-index-packs-zephyr-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-zephyr-query-engine/tests/test_packs_zephyr_query_engine.py
llama-index-packs/llama-index-packs-zephyr-query-engine/tests/test_packs_zephyr_query_engine.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.zephyr_query_engine import ZephyrQueryEnginePack def test_class(): names_of_base_classes = [b.__name__ for b in ZephyrQueryEnginePack.__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-zephyr-query-engine/llama_index/packs/zephyr_query_engine/__init__.py
llama-index-packs/llama-index-packs-zephyr-query-engine/llama_index/packs/zephyr_query_engine/__init__.py
from llama_index.packs.zephyr_query_engine.base import ZephyrQueryEnginePack __all__ = ["ZephyrQueryEnginePack"]
python
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-zephyr-query-engine/llama_index/packs/zephyr_query_engine/base.py
llama-index-packs/llama-index-packs-zephyr-query-engine/llama_index/packs/zephyr_query_engine/base.py
"""LlamaPack class.""" from typing import Any, Dict, List from llama_index.core import Settings, VectorStoreIndex, set_global_tokenizer from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.prompts import PromptTemplate from llama_index.core.schema import Document from llama_index.llms.hugg...
python
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-multidoc-autoretrieval/tests/test_packs_multidoc_autoretrieval.py
llama-index-packs/llama-index-packs-multidoc-autoretrieval/tests/test_packs_multidoc_autoretrieval.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.multidoc_autoretrieval import MultiDocAutoRetrieverPack def test_class(): names_of_base_classes = [b.__name__ for b in MultiDocAutoRetrieverPack.__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-multidoc-autoretrieval/tests/__init__.py
llama-index-packs/llama-index-packs-multidoc-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-multidoc-autoretrieval/llama_index/packs/multidoc_autoretrieval/__init__.py
llama-index-packs/llama-index-packs-multidoc-autoretrieval/llama_index/packs/multidoc_autoretrieval/__init__.py
from llama_index.packs.multidoc_autoretrieval.base import MultiDocAutoRetrieverPack __all__ = ["MultiDocAutoRetrieverPack"]
python
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-multidoc-autoretrieval/llama_index/packs/multidoc_autoretrieval/base.py
llama-index-packs/llama-index-packs-multidoc-autoretrieval/llama_index/packs/multidoc_autoretrieval/base.py
"""Multidoc Autoretriever.""" from typing import Any, Dict, List, Optional, cast from llama_index.core import VectorStoreIndex from llama_index.core.indices.query.schema import QueryBundle from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.query_engine import RetrieverQueryEngine 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-packs/llama-index-packs-multi-tenancy-rag/tests/test_packs_multi_tenancy_rag.py
llama-index-packs/llama-index-packs-multi-tenancy-rag/tests/test_packs_multi_tenancy_rag.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.multi_tenancy_rag import MultiTenancyRAGPack def test_class(): names_of_base_classes = [b.__name__ for b in MultiTenancyRAGPack.__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-multi-tenancy-rag/tests/__init__.py
llama-index-packs/llama-index-packs-multi-tenancy-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-multi-tenancy-rag/llama_index/packs/multi_tenancy_rag/__init__.py
llama-index-packs/llama-index-packs-multi-tenancy-rag/llama_index/packs/multi_tenancy_rag/__init__.py
from llama_index.packs.multi_tenancy_rag.base import MultiTenancyRAGPack __all__ = ["MultiTenancyRAGPack"]
python
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-multi-tenancy-rag/llama_index/packs/multi_tenancy_rag/base.py
llama-index-packs/llama-index-packs-multi-tenancy-rag/llama_index/packs/multi_tenancy_rag/base.py
from typing import Any, Dict, List from llama_index.core import Settings, VectorStoreIndex, get_response_synthesizer from llama_index.core.ingestion import IngestionPipeline from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.query_engine import RetrieverQueryEngine from llama_index.core.r...
python
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-ragatouille-retriever/tests/__init__.py
llama-index-packs/llama-index-packs-ragatouille-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-ragatouille-retriever/tests/test_packs_ragatouille_retriever.py
llama-index-packs/llama-index-packs-ragatouille-retriever/tests/test_packs_ragatouille_retriever.py
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.ragatouille_retriever import RAGatouilleRetrieverPack def test_class(): names_of_base_classes = [b.__name__ for b in RAGatouilleRetrieverPack.__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-ragatouille-retriever/llama_index/packs/ragatouille_retriever/__init__.py
llama-index-packs/llama-index-packs-ragatouille-retriever/llama_index/packs/ragatouille_retriever/__init__.py
from llama_index.packs.ragatouille_retriever.base import RAGatouilleRetrieverPack __all__ = ["RAGatouilleRetrieverPack"]
python
MIT
dd5b31109cc8eb64411caf9fc1fa0f51e584c325
2026-01-04T14:39:40.052063Z
false