repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/postprocessor/llama-index-postprocessor-contextual-rerank/llama_index/postprocessor/contextual_rerank/__init__.py | llama-index-integrations/postprocessor/llama-index-postprocessor-contextual-rerank/llama_index/postprocessor/contextual_rerank/__init__.py | from llama_index.postprocessor.contextual_rerank.base import ContextualRerank
__all__ = ["ContextualRerank"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/postprocessor/llama-index-postprocessor-contextual-rerank/llama_index/postprocessor/contextual_rerank/base.py | llama-index-integrations/postprocessor/llama-index-postprocessor-contextual-rerank/llama_index/postprocessor/contextual_rerank/base.py | import os
from typing import Any, List, Optional
from llama_index.core.bridge.pydantic import Field, PrivateAttr
from llama_index.core.callbacks import CBEventType, EventPayload
from llama_index.core.instrumentation import get_dispatcher
from llama_index.core.instrumentation.events.rerank import (
ReRankEndEvent,
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/postprocessor/llama-index-postprocessor-xinference-rerank/tests/test_postprocessor_xinference_rerank.py | llama-index-integrations/postprocessor/llama-index-postprocessor-xinference-rerank/tests/test_postprocessor_xinference_rerank.py | from llama_index.core.postprocessor.types import BaseNodePostprocessor
from llama_index.postprocessor.xinference_rerank import XinferenceRerank
def test_class():
names_of_base_classes = [b.__name__ for b in XinferenceRerank.__mro__]
assert BaseNodePostprocessor.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/postprocessor/llama-index-postprocessor-xinference-rerank/tests/__init__.py | llama-index-integrations/postprocessor/llama-index-postprocessor-xinference-rerank/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/postprocessor/llama-index-postprocessor-xinference-rerank/llama_index/postprocessor/xinference_rerank/__init__.py | llama-index-integrations/postprocessor/llama-index-postprocessor-xinference-rerank/llama_index/postprocessor/xinference_rerank/__init__.py | from llama_index.postprocessor.xinference_rerank.base import XinferenceRerank
__all__ = ["XinferenceRerank"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/postprocessor/llama-index-postprocessor-xinference-rerank/llama_index/postprocessor/xinference_rerank/base.py | llama-index-integrations/postprocessor/llama-index-postprocessor-xinference-rerank/llama_index/postprocessor/xinference_rerank/base.py | import requests
from typing import List, Optional
from llama_index.core.bridge.pydantic import Field
from llama_index.core.callbacks import CBEventType, EventPayload
from llama_index.core.instrumentation import get_dispatcher
from llama_index.core.instrumentation.events.rerank import (
ReRankEndEvent,
ReRankSta... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-entity/tests/__init__.py | llama-index-integrations/extractors/llama-index-extractors-entity/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-entity/tests/test_extractors_entity.py | llama-index-integrations/extractors/llama-index-extractors-entity/tests/test_extractors_entity.py | from llama_index.extractors.entity import EntityExtractor
def test_extractor_class():
# TODO: mock the entity extractor
assert EntityExtractor.class_name() == "EntityExtractor"
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-entity/llama_index/extractors/entity/__init__.py | llama-index-integrations/extractors/llama-index-extractors-entity/llama_index/extractors/entity/__init__.py | from llama_index.extractors.entity.base import EntityExtractor
__all__ = ["EntityExtractor"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-entity/llama_index/extractors/entity/base.py | llama-index-integrations/extractors/llama-index-extractors-entity/llama_index/extractors/entity/base.py | from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence
from llama_index.core.bridge.pydantic import Field, PrivateAttr
from llama_index.core.extractors.interface import BaseExtractor
from llama_index.core.schema import BaseNode
from llama_index.core.utils import get_tqdm_iterable
from nltk.tokenize... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-marvin/tests/test_extractors_marvin.py | llama-index-integrations/extractors/llama-index-extractors-marvin/tests/test_extractors_marvin.py | from llama_index.extractors.marvin.base import MarvinMetadataExtractor
def test_marvin_class():
"""TODO: mock this class and have proper test."""
assert MarvinMetadataExtractor.class_name() == "MarvinEntityExtractor"
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-marvin/tests/__init__.py | llama-index-integrations/extractors/llama-index-extractors-marvin/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-marvin/llama_index/extractors/marvin/__init__.py | llama-index-integrations/extractors/llama-index-extractors-marvin/llama_index/extractors/marvin/__init__.py | from llama_index.extractors.marvin.base import MarvinMetadataExtractor
__all__ = ["MarvinMetadataExtractor"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-marvin/llama_index/extractors/marvin/base.py | llama-index-integrations/extractors/llama-index-extractors-marvin/llama_index/extractors/marvin/base.py | from typing import (
Any,
Dict,
Iterable,
List,
Sequence,
Type,
)
from pydantic import BaseModel, Field
from llama_index.core.extractors.interface import BaseExtractor
from llama_index.core.schema import BaseNode, TextNode
from llama_index.core.utils import get_tqdm_iterable
class MarvinMetad... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-relik/llama_index/extractors/relik/__init__.py | llama-index-integrations/extractors/llama-index-extractors-relik/llama_index/extractors/relik/__init__.py | from llama_index.extractors.relik.base import RelikPathExtractor
__all__ = ["RelikPathExtractor"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/extractors/llama-index-extractors-relik/llama_index/extractors/relik/base.py | llama-index-integrations/extractors/llama-index-extractors-relik/llama_index/extractors/relik/base.py | import tqdm
import logging
from typing import Any, List, Dict
from llama_index.core.graph_stores.types import (
EntityNode,
Relation,
KG_NODES_KEY,
KG_RELATIONS_KEY,
)
from llama_index.core.schema import TransformComponent, BaseNode
DEFAULT_NODE_TYPE = "Entity"
class RelikPathExtractor(TransformComp... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/router.py | llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/router.py | from typing import Callable, Dict, Any, List, Optional, Awaitable
from ag_ui.core import RunAgentInput
from fastapi import APIRouter
from fastapi.responses import StreamingResponse
from llama_index.core.llms.function_calling import FunctionCallingLLM
from llama_index.core.workflow import Workflow
from llama_index.pro... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/events.py | llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/events.py | # Converts ag_ui events to llama_index workflow events
from ag_ui.core.events import (
EventType,
TextMessageStartEvent,
TextMessageContentEvent,
TextMessageChunkEvent,
TextMessageEndEvent,
ToolCallStartEvent,
ToolCallArgsEvent,
ToolCallChunkEvent,
ToolCallEndEvent,
StateSnapsho... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/utils.py | llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/utils.py | import datetime
import re
import uuid
from ag_ui.core import (
Message,
SystemMessage,
UserMessage,
AssistantMessage,
ToolMessage,
DeveloperMessage,
ToolCall,
FunctionCall,
)
from ag_ui.encoder import EventEncoder
from typing import Union, Callable
from llama_index.core.llms import Chat... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/__init__.py | llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/agent.py | llama-index-integrations/protocols/llama-index-protocols-ag-ui/llama_index/protocols/ag_ui/agent.py | import json
import uuid
from typing import Any, Callable, Dict, List, Optional, Union
from ag_ui.core import RunAgentInput
from llama_index.core import Settings
from llama_index.core.llms import ChatMessage, ChatResponse, TextBlock
from llama_index.core.llms.function_calling import FunctionCallingLLM
from llama_index... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-zep/tests/test_readers_zep.py | llama-index-integrations/readers/llama-index-readers-zep/tests/test_readers_zep.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.zep import ZepReader
def test_class():
names_of_base_classes = [b.__name__ for b in ZepReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-zep/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-zep/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-zep/llama_index/readers/zep/__init__.py | llama-index-integrations/readers/llama-index-readers-zep/llama_index/readers/zep/__init__.py | from llama_index.readers.zep.base import ZepReader
__all__ = ["ZepReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-zep/llama_index/readers/zep/base.py | llama-index-integrations/readers/llama-index-readers-zep/llama_index/readers/zep/base.py | """Pinecone reader."""
from typing import Any, Dict, List, Optional
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class ZepReader(BaseReader):
"""
Zep document vector store reader.
Args:
api_url (str): Zep API URL
api_key (str): Zep AP... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-preprocess/tests/test_readers_preprocess.py | llama-index-integrations/readers/llama-index-readers-preprocess/tests/test_readers_preprocess.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.preprocess import PreprocessReader
def test_class():
names_of_base_classes = [b.__name__ for b in PreprocessReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-preprocess/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-preprocess/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-preprocess/llama_index/readers/preprocess/__init__.py | llama-index-integrations/readers/llama-index-readers-preprocess/llama_index/readers/preprocess/__init__.py | from llama_index.readers.preprocess.base import PreprocessReader
__all__ = ["PreprocessReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-preprocess/llama_index/readers/preprocess/base.py | llama-index-integrations/readers/llama-index-readers-preprocess/llama_index/readers/preprocess/base.py | """Preprocess Reader."""
import hashlib
import os
from typing import List
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import (
Document,
NodeRelationship,
RelatedNodeInfo,
TextNode,
)
class PreprocessReader(BaseReader):
"""
Preprocess is an API service t... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-chroma/tests/test_readers_chroma.py | llama-index-integrations/readers/llama-index-readers-chroma/tests/test_readers_chroma.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.chroma import ChromaReader
def test_class():
names_of_base_classes = [b.__name__ for b in ChromaReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-chroma/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-chroma/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-chroma/llama_index/readers/chroma/__init__.py | llama-index-integrations/readers/llama-index-readers-chroma/llama_index/readers/chroma/__init__.py | from llama_index.readers.chroma.base import ChromaReader
__all__ = ["ChromaReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-chroma/llama_index/readers/chroma/base.py | llama-index-integrations/readers/llama-index-readers-chroma/llama_index/readers/chroma/base.py | """Chroma Reader."""
from typing import Any, List, Optional, Union
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class ChromaReader(BaseReader):
"""
Chroma reader.
Retrieve documents from existing persisted Chroma collections.
Args:
colle... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-memos/tests/test_readers_memos.py | llama-index-integrations/readers/llama-index-readers-memos/tests/test_readers_memos.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.memos import MemosReader
def test_class():
names_of_base_classes = [b.__name__ for b in MemosReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-memos/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-memos/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-memos/llama_index/readers/memos/__init__.py | llama-index-integrations/readers/llama-index-readers-memos/llama_index/readers/memos/__init__.py | """Init file."""
from llama_index.readers.memos.base import (
MemosReader,
)
__all__ = ["MemosReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-memos/llama_index/readers/memos/base.py | llama-index-integrations/readers/llama-index-readers-memos/llama_index/readers/memos/base.py | """Simple Reader for Memos."""
from typing import Dict, List
from urllib.parse import urljoin
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class MemosReader(BaseReader):
"""
Memos reader.
Reads content from an Memos.
"""
def __init__(self, ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-quip/tests/test_readers_quip.py | llama-index-integrations/readers/llama-index-readers-quip/tests/test_readers_quip.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.quip import QuipReader
def test_class():
names_of_base_classes = [b.__name__ for b in QuipReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-quip/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-quip/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-quip/llama_index/readers/quip/__init__.py | llama-index-integrations/readers/llama-index-readers-quip/llama_index/readers/quip/__init__.py | from llama_index.readers.quip.base import QuipReader
__all__ = ["QuipReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-quip/llama_index/readers/quip/base.py | llama-index-integrations/readers/llama-index-readers-quip/llama_index/readers/quip/base.py | """Quip reader."""
from llama_index.core.readers.base import BasePydanticReader
from llama_index.core.schema import Document
from typing import Any, Dict, List, Optional
import requests # type: ignore
import time
from pydantic import Field
BASE_URL = "https://platform.quip.com"
class QuipReader(BasePydanticReader)... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-sec-filings/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/tests/test_readers_sec_filings.py | llama-index-integrations/readers/llama-index-readers-sec-filings/tests/test_readers_sec_filings.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.sec_filings import SECFilingsLoader
def test_class():
names_of_base_classes = [b.__name__ for b in SECFilingsLoader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/utils.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/utils.py | import time
from collections import namedtuple
from pathlib import Path
from typing import List
import requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
try:
from faker import Faker
fake = Faker()
except Exception:
fake = None
MAX_RETRIES = 10
SEC_EDGAR_RATE_LIMIT_S... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/__init__.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/__init__.py | from llama_index.readers.sec_filings.base import SECFilingsLoader
__all__ = ["SECFilingsLoader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/base.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/base.py | import concurrent.futures
import json
import os
import time
from collections import defaultdict
from typing import List
from llama_index.core.readers.base import BaseReader
from llama_index.readers.sec_filings.sec_filings import SECExtractor
class SECFilingsLoader(BaseReader):
"""
SEC Filings loader
Get ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/sec_filings.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/sec_filings.py | from typing import Any, Dict, List
try:
from llama_index.readers.sec_filings.prepline_sec_filings.sec_document import (
REPORT_TYPES,
VALID_FILING_TYPES,
SECDocument,
)
from llama_index.readers.sec_filings.prepline_sec_filings.sections import (
ALL_SECTIONS,
SECTIONS... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/sec_document.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/sec_document.py | import re
import sys
from functools import partial
from typing import Any, Iterable, Iterator, List, Optional, Tuple
if sys.version_info < (3, 8): # noqa: UP036
from typing import Final
else:
from typing import Final
from collections import defaultdict
import numpy as np
import numpy.typing as npt
try:
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/sections.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/sections.py | """Module for defining/enumerating the common sections from SEC forms."""
import re
from enum import Enum
from typing import List
class SECSection(Enum):
PROSPECTUS_SUMMARY = re.compile(r"^(?:prospectus )?summary$")
ABOUT_PROSPECTUS = re.compile(r"about this prospectus")
FORWARD_LOOKING_STATEMENTS = re.c... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/__init__.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/fetch.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/fetch.py | """Module for fetching data from the SEC EDGAR Archives."""
import json
import os
import re
import sys
from typing import List, Optional, Tuple, Union
import requests
if sys.version_info < (3, 8): # noqa: UP036
from typing import Final
else:
from typing import Final
import webbrowser
try:
from ratelim... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/api/__init__.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/api/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/api/section.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/api/section.py | #####################################################################
# THIS FILE IS AUTOMATICALLY GENERATED BY UNSTRUCTURED API TOOLS.
# DO NOT MODIFY DIRECTLY
#####################################################################
import gzip
import io
import json
import mimetypes
import os
import secrets
from base64 ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/api/app.py | llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/prepline_sec_filings/api/app.py | #####################################################################
# THIS FILE IS AUTOMATICALLY GENERATED BY UNSTRUCTURED API TOOLS.
# DO NOT MODIFY DIRECTLY
#####################################################################
import logging
import os
from fastapi import FastAPI, Request, status
from .section i... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-airbyte-shopify/tests/test_readers_airbyte_shopify.py | llama-index-integrations/readers/llama-index-readers-airbyte-shopify/tests/test_readers_airbyte_shopify.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.airbyte_shopify import AirbyteShopifyReader
def test_class():
names_of_base_classes = [b.__name__ for b in AirbyteShopifyReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-airbyte-shopify/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-airbyte-shopify/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-airbyte-shopify/llama_index/readers/airbyte_shopify/__init__.py | llama-index-integrations/readers/llama-index-readers-airbyte-shopify/llama_index/readers/airbyte_shopify/__init__.py | from llama_index.readers.airbyte_shopify.base import AirbyteShopifyReader
__all__ = ["AirbyteShopifyReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-airbyte-shopify/llama_index/readers/airbyte_shopify/base.py | llama-index-integrations/readers/llama-index-readers-airbyte-shopify/llama_index/readers/airbyte_shopify/base.py | from typing import Any, Mapping, Optional
from llama_index.readers.airbyte_cdk.base import AirbyteCDKReader, RecordHandler
class AirbyteShopifyReader(AirbyteCDKReader):
"""
AirbyteShopifyReader reader.
Retrieve documents from Shopify
Args:
config: The config object for the shopify source.
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-docstring-walker/tests/test_readers_docstring_walker.py | llama-index-integrations/readers/llama-index-readers-docstring-walker/tests/test_readers_docstring_walker.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.docstring_walker import DocstringWalker
def test_class():
names_of_base_classes = [b.__name__ for b in DocstringWalker.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-docstring-walker/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-docstring-walker/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-docstring-walker/llama_index/readers/docstring_walker/__init__.py | llama-index-integrations/readers/llama-index-readers-docstring-walker/llama_index/readers/docstring_walker/__init__.py | """Init file."""
from llama_index.readers.docstring_walker.base import DocstringWalker
__all__ = ["DocstringWalker"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-docstring-walker/llama_index/readers/docstring_walker/base.py | llama-index-integrations/readers/llama-index-readers-docstring-walker/llama_index/readers/docstring_walker/base.py | """Main module for DocstringWalker loader for Llama Hub."""
import ast
import logging
import os
from typing import List
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
TYPES_TO_PROCESS = {ast.FunctionDef, ast.ClassDef}
log = logging.getLogger(__name__)
class Docst... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-hwp/tests/test_readers_hwp.py | llama-index-integrations/readers/llama-index-readers-hwp/tests/test_readers_hwp.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.hwp import HWPReader
def test_class():
names_of_base_classes = [b.__name__ for b in HWPReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-hwp/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-hwp/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-hwp/llama_index/readers/hwp/__init__.py | llama-index-integrations/readers/llama-index-readers-hwp/llama_index/readers/hwp/__init__.py | from llama_index.readers.hwp.base import HWPReader
__all__ = ["HWPReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-hwp/llama_index/readers/hwp/base.py | llama-index-integrations/readers/llama-index-readers-hwp/llama_index/readers/hwp/base.py | import struct
import zlib
from pathlib import Path
from typing import Any, Dict, List, Optional
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class HWPReader(BaseReader):
"""
Hwp Reader. Reads contents from Hwp file.
Args: None.
"""
def __init_... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-mbox/tests/test_readers_mbox.py | llama-index-integrations/readers/llama-index-readers-mbox/tests/test_readers_mbox.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.mbox import MboxReader
def test_class():
names_of_base_classes = [b.__name__ for b in MboxReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-mbox/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-mbox/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-mbox/llama_index/readers/mbox/__init__.py | llama-index-integrations/readers/llama-index-readers-mbox/llama_index/readers/mbox/__init__.py | from llama_index.readers.mbox.base import MboxReader
__all__ = ["MboxReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-mbox/llama_index/readers/mbox/base.py | llama-index-integrations/readers/llama-index-readers-mbox/llama_index/readers/mbox/base.py | """Simple reader for mbox (mailbox) files."""
import os
from pathlib import Path
from typing import Any, List
from llama_index.core.readers.base import BaseReader
from llama_index.readers.file import MboxReader as MboxFileReader
from llama_index.core.schema import Document
class MboxReader(BaseReader):
"""
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-faiss/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-faiss/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-faiss/tests/test_readers_faiss.py | llama-index-integrations/readers/llama-index-readers-faiss/tests/test_readers_faiss.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.faiss import FaissReader
def test_class():
names_of_base_classes = [b.__name__ for b in FaissReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-faiss/llama_index/readers/faiss/__init__.py | llama-index-integrations/readers/llama-index-readers-faiss/llama_index/readers/faiss/__init__.py | from llama_index.readers.faiss.base import FaissReader
__all__ = ["FaissReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-faiss/llama_index/readers/faiss/base.py | llama-index-integrations/readers/llama-index-readers-faiss/llama_index/readers/faiss/base.py | """Faiss reader."""
from typing import Any, Dict, List
import numpy as np
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class FaissReader(BaseReader):
"""
Faiss reader.
Retrieves documents through an existing in-memory Faiss index.
These documents... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-intercom/tests/test_readers_intercom.py | llama-index-integrations/readers/llama-index-readers-intercom/tests/test_readers_intercom.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.intercom import IntercomReader
def test_class():
names_of_base_classes = [b.__name__ for b in IntercomReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-intercom/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-intercom/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-intercom/llama_index/readers/intercom/__init__.py | llama-index-integrations/readers/llama-index-readers-intercom/llama_index/readers/intercom/__init__.py | from llama_index.readers.intercom.base import IntercomReader
__all__ = ["IntercomReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-intercom/llama_index/readers/intercom/base.py | llama-index-integrations/readers/llama-index-readers-intercom/llama_index/readers/intercom/base.py | """Intercom reader."""
import json
from typing import List
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class IntercomReader(BaseReader):
"""
Intercom reader. Reads data from a Intercom workspace.
Args:
personal_access_token (str): Intercom t... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-airtable/llama_index/readers/airtable/__init__.py | llama-index-integrations/readers/llama-index-readers-airtable/llama_index/readers/airtable/__init__.py | from llama_index.readers.airtable.base import AirtableReader
__all__ = ["AirtableReader"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-airtable/llama_index/readers/airtable/base.py | llama-index-integrations/readers/llama-index-readers-airtable/llama_index/readers/airtable/base.py | """Airtable reader."""
from typing import List
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
from pyairtable import Table
class AirtableReader(BaseReader):
"""
Airtable reader. Reads data from a table in a base.
Args:
api_key (str): Airtable A... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/tests/test_github_app_auth.py | llama-index-integrations/readers/llama-index-readers-github/tests/test_github_app_auth.py | """Tests for GitHub App authentication."""
import time
import os
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
# Test if PyJWT is available
try:
import jwt
HAS_JWT = True
except ImportError:
HAS_JWT = False
jwt = None
try:
from llama_index.readers.github.github_app_auth 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-integrations/readers/llama-index-readers-github/tests/test_github_repository_reader.py | llama-index-integrations/readers/llama-index-readers-github/tests/test_github_repository_reader.py | from __future__ import annotations
from llama_index.readers.github import GithubRepositoryReader
from llama_index.readers.github.repository.github_client import (
GithubClient,
GitBranchResponseModel,
GitTreeResponseModel,
GitCommitResponseModel,
)
from llama_index.core.schema import Document
from llam... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | true |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/tests/test_gh_base_url.py | llama-index-integrations/readers/llama-index-readers-github/tests/test_gh_base_url.py | import pytest
from llama_index.readers.github import GithubRepositoryReader
class MockGithubClient:
pass
@pytest.fixture()
def github_reader():
return GithubRepositoryReader(
github_client=MockGithubClient(), owner="owner", repo="repo"
)
@pytest.mark.parametrize(
("blob_url", "expected_bas... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/examples/github_app_example.py | llama-index-integrations/readers/llama-index-readers-github/examples/github_app_example.py | """
Example: Using GitHub App Authentication with LlamaIndex GitHub Reader
This example demonstrates how to use GitHub App authentication instead of a Personal Access Token (PAT).
GitHub App authentication is more secure and provides better rate limits for enterprise use cases.
Prerequisites:
1. Create a GitHub App (... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/github_app_auth.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/github_app_auth.py | """
GitHub App authentication module.
This module provides GitHub App authentication support for the GitHub readers.
It handles JWT generation and installation access token management with automatic
token refresh and caching.
"""
import time
from typing import Optional
try:
import jwt
except ImportError:
jwt... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/__init__.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/__init__.py | from llama_index.readers.github.collaborators.base import (
GitHubRepositoryCollaboratorsReader,
GitHubCollaboratorsClient,
)
from llama_index.readers.github.issues.base import (
GitHubIssuesClient,
GitHubRepositoryIssuesReader,
)
from llama_index.readers.github.repository.base import (
GithubClient... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/issues/__init__.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/issues/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/issues/base.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/issues/base.py | """
GitHub repository issues reader.
Retrieves the list of issues of a GitHub repository and converts them to documents.
Each issue is converted to a document by doing the following:
- The text of the document is the concatenation of the title and the body of the issue.
- The title of the document is the tit... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/issues/github_client.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/issues/github_client.py | """
GitHub API client for issues.
"""
import os
from typing import Any, Dict, Optional, Protocol, Union
try:
from llama_index.readers.github.github_app_auth import GitHubAppAuth
except ImportError:
GitHubAppAuth = None # type: ignore
class BaseGitHubIssuesClient(Protocol):
def get_all_endpoints(self) -... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/collaborators/__init__.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/collaborators/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/collaborators/base.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/collaborators/base.py | """
GitHub repository collaborators reader.
Retrieves the list of collaborators in a GitHub repository and converts them to documents.
Each collaborator is converted to a document by doing the following:
- The text of the document is the login.
- The title of the document is also the login.
- The extra_i... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/collaborators/github_client.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/collaborators/github_client.py | """
GitHub API client for collaborators.
"""
import os
from typing import Any, Dict, Optional, Protocol, Union
try:
from llama_index.readers.github.github_app_auth import GitHubAppAuth
except ImportError:
GitHubAppAuth = None # type: ignore
class BaseGitHubCollaboratorsClient(Protocol):
def get_all_end... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/event.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/event.py | from typing import Optional
from llama_index.core.instrumentation.events import BaseEvent
from llama_index.core.schema import Document
# GitHub-specific LlamaIndex events
class GitHubRepositoryProcessingStartedEvent(BaseEvent):
"""Event dispatched when GitHub repository processing starts."""
repository_name... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/utils.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/utils.py | """
Github readers utils.
This module contains utility functions for the Github readers.
"""
import asyncio
import os
import time
from abc import ABC, abstractmethod
from typing import List, Optional, Tuple
from llama_index.readers.github.repository.github_client import (
GitBlobResponseModel,
GithubClient,
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/__init__.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/base.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/base.py | """
Github repository reader.
Retrieves the contents of a Github repository and returns a list of documents.
The documents are either the contents of the files in the repository or
the text extracted from the files using the parser.
"""
import asyncio
import base64
import binascii
import enum
import logging
import os... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | true |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/github_client.py | llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/github_client.py | """
Github API client for the GPT-Index library.
This module contains the Github API client for the GPT-Index library.
It is used by the Github readers to retrieve the data from Github.
"""
import os
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Protocol, Union
from dataclas... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-nougat-ocr/tests/__init__.py | llama-index-integrations/readers/llama-index-readers-nougat-ocr/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-nougat-ocr/tests/test_readers_nougat_ocr.py | llama-index-integrations/readers/llama-index-readers-nougat-ocr/tests/test_readers_nougat_ocr.py | from llama_index.core.readers.base import BaseReader
from llama_index.readers.nougat_ocr import PDFNougatOCR
def test_class():
names_of_base_classes = [b.__name__ for b in PDFNougatOCR.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/readers/llama-index-readers-nougat-ocr/llama_index/readers/nougat_ocr/__init__.py | llama-index-integrations/readers/llama-index-readers-nougat-ocr/llama_index/readers/nougat_ocr/__init__.py | from llama_index.readers.nougat_ocr.base import PDFNougatOCR
__all__ = ["PDFNougatOCR"]
| 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.