repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/processing/enums.py
null
null
null
null
null
null
Python
2026-05-04T02:19:27.102803
"""Enums for file processing configuration.""" from enum import Enum class FileHandling(Enum): """Defines how files exceeding provider limits should be handled. Attributes: STRICT: Fail with an error if file exceeds limits. AUTO: Automatically resize, compress, or optimize to fit limits. ...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/processing/constraints.py
null
null
null
null
null
null
Python
2026-05-04T02:19:27.103833
"""Provider-specific file constraints for multimodal content.""" from dataclasses import dataclass from functools import lru_cache from typing import Literal from crewai_files.core.types import ( AudioMimeType, ImageMimeType, TextContentType, VideoMimeType, ) ProviderName = Literal[ "anthropic",...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/formatting/gemini.py
null
null
null
null
null
null
Python
2026-05-04T02:19:27.105138
"""Gemini content block formatter.""" from __future__ import annotations import base64 from typing import Any from crewai_files.core.resolved import ( FileReference, InlineBase64, InlineBytes, ResolvedFileType, UrlReference, ) class GeminiFormatter: """Formats resolved files into Gemini con...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/formatting/bedrock.py
null
null
null
null
null
null
Python
2026-05-04T02:19:27.105620
"""Bedrock content block formatter.""" from __future__ import annotations import base64 from typing import Any from crewai_files.core.resolved import ( FileReference, InlineBase64, InlineBytes, ResolvedFileType, UrlReference, ) from crewai_files.core.types import FileInput _DOCUMENT_FORMATS: di...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/formatting/api.py
null
null
null
null
null
null
Python
2026-05-04T02:19:28.466421
"""High-level API for formatting multimodal content.""" from __future__ import annotations import os from typing import Any from crewai_files.cache.upload_cache import get_upload_cache from crewai_files.core.types import FileInput from crewai_files.formatting.anthropic import AnthropicFormatter from crewai_files.for...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/core/types.py
null
null
null
null
null
null
Python
2026-05-04T02:19:28.579400
"""Content-type specific file classes.""" from __future__ import annotations from abc import ABC from io import IOBase from pathlib import Path from typing import Annotated, Any, BinaryIO, Literal from pydantic import BaseModel, Field, GetCoreSchemaHandler from pydantic_core import CoreSchema, core_schema from typin...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/resolution/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:29.067058
"""File resolution logic.""" from crewai_files.resolution.resolver import FileResolver from crewai_files.resolution.utils import ( is_file_source, normalize_input_files, wrap_file_source, ) __all__ = [ "FileResolver", "is_file_source", "normalize_input_files", "wrap_file_source", ]
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/processing/processor.py
null
null
null
null
null
null
Python
2026-05-04T02:19:29.067735
"""FileProcessor for validating and transforming files based on provider constraints.""" import asyncio from collections.abc import Sequence import logging from crewai_files.core.types import ( AudioFile, File, FileInput, ImageFile, PDFFile, TextFile, VideoFile, ) from crewai_files.process...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/processing/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T02:19:29.069870
"""Exceptions for file processing operations.""" class FileProcessingError(Exception): """Base exception for file processing errors.""" def __init__(self, message: str, file_name: str | None = None) -> None: """Initialize the exception. Args: message: Error message describing the...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/resolution/resolver.py
null
null
null
null
null
null
Python
2026-05-04T02:19:29.070903
"""FileResolver for deciding file delivery method and managing uploads.""" import asyncio import base64 from dataclasses import dataclass, field import hashlib import logging from crewai_files.cache.metrics import measure_operation from crewai_files.cache.upload_cache import CachedUpload, UploadCache from crewai_file...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/uploaders/anthropic.py
null
null
null
null
null
null
Python
2026-05-04T02:19:29.315866
"""Anthropic Files API uploader implementation.""" from __future__ import annotations import logging import os from typing import Any from crewai_files.core.sources import generate_filename from crewai_files.core.types import FileInput from crewai_files.processing.exceptions import classify_upload_error from crewai_...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/uploaders/base.py
null
null
null
null
null
null
Python
2026-05-04T02:19:30.433918
"""Base class for file uploaders.""" from abc import ABC, abstractmethod import asyncio from dataclasses import dataclass from datetime import datetime from typing import Any from crewai_files.core.types import FileInput @dataclass class UploadResult: """Result of a file upload operation. Attributes: ...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/uploaders/gemini.py
null
null
null
null
null
null
Python
2026-05-04T02:19:30.778222
"""Gemini File API uploader implementation.""" from __future__ import annotations import asyncio from datetime import datetime, timezone import io import logging import os from pathlib import Path import random import time from typing import Any from crewai_files.core.constants import ( BACKOFF_BASE_DELAY, B...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/uploaders/factory.py
null
null
null
null
null
null
Python
2026-05-04T02:19:30.801016
"""Factory for creating file uploaders.""" from __future__ import annotations import logging from typing import Any as AnyType, Literal, TypeAlias, TypedDict, overload from typing_extensions import NotRequired, Unpack from crewai_files.uploaders.anthropic import AnthropicFileUploader from crewai_files.uploaders.bed...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/uploaders/openai.py
null
null
null
null
null
null
Python
2026-05-04T02:19:30.822637
"""OpenAI Files API uploader implementation.""" from __future__ import annotations from collections.abc import AsyncIterator, Iterator import io import logging import os from typing import Any from crewai_files.core.constants import DEFAULT_UPLOAD_CHUNK_SIZE, FILES_API_MAX_SIZE from crewai_files.core.sources import ...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/uploaders/bedrock.py
null
null
null
null
null
null
Python
2026-05-04T02:19:30.889310
"""AWS Bedrock S3 file uploader implementation.""" from __future__ import annotations import hashlib import logging import os from pathlib import Path from typing import Any from crewai_files.core.constants import ( MAX_CONCURRENCY, MULTIPART_CHUNKSIZE, MULTIPART_THRESHOLD, ) from crewai_files.core.sourc...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/processing/transformers.py
null
null
null
null
null
null
Python
2026-05-04T02:19:31.019735
"""File transformation functions for resizing, optimizing, and chunking.""" from collections.abc import Iterator import io import logging from crewai_files.core.sources import FileBytes from crewai_files.core.types import ImageFile, PDFFile, TextFile from crewai_files.processing.exceptions import ProcessingDependency...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/tests/processing/test_constraints.py
null
null
null
null
null
null
Python
2026-05-04T02:19:31.446707
"""Tests for provider constraints.""" from crewai_files.processing.constraints import ( ANTHROPIC_CONSTRAINTS, BEDROCK_CONSTRAINTS, GEMINI_CONSTRAINTS, OPENAI_CONSTRAINTS, AudioConstraints, ImageConstraints, PDFConstraints, ProviderConstraints, VideoConstraints, get_constraints_...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/tests/processing/test_processor.py
null
null
null
null
null
null
Python
2026-05-04T02:19:31.637617
"""Tests for FileProcessor class.""" from crewai_files import FileBytes, ImageFile from crewai_files.processing.constraints import ( ANTHROPIC_CONSTRAINTS, ImageConstraints, ProviderConstraints, ) from crewai_files.processing.enums import FileHandling from crewai_files.processing.exceptions import ( Fi...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/tests/processing/test_validators.py
null
null
null
null
null
null
Python
2026-05-04T02:19:31.712445
"""Tests for file validators.""" from unittest.mock import patch from crewai_files import AudioFile, FileBytes, ImageFile, PDFFile, TextFile, VideoFile from crewai_files.processing.constraints import ( ANTHROPIC_CONSTRAINTS, AudioConstraints, ImageConstraints, PDFConstraints, ProviderConstraints, ...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/tests/processing/test_transformers.py
null
null
null
null
null
null
Python
2026-05-04T02:19:31.734145
"""Unit tests for file transformers.""" import io from unittest.mock import patch from crewai_files import ImageFile, PDFFile, TextFile from crewai_files.core.sources import FileBytes from crewai_files.processing.exceptions import ProcessingDependencyError from crewai_files.processing.transformers import ( chunk_...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/tests/test_resolved.py
null
null
null
null
null
null
Python
2026-05-04T02:19:32.091888
"""Tests for resolved file types.""" from datetime import datetime, timezone from crewai_files.core.resolved import ( FileReference, InlineBase64, InlineBytes, ResolvedFile, UrlReference, ) import pytest class TestInlineBase64: """Tests for InlineBase64 resolved type.""" def test_create...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/tests/test_resolver.py
null
null
null
null
null
null
Python
2026-05-04T02:19:32.325786
"""Tests for FileResolver.""" from crewai_files import FileBytes, ImageFile from crewai_files.cache.upload_cache import UploadCache from crewai_files.core.resolved import InlineBase64, InlineBytes from crewai_files.resolution.resolver import ( FileResolver, FileResolverConfig, create_resolver, ) # Minima...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-tools/src/crewai_tools/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:32.787826
from crewai_tools.adapters.enterprise_adapter import EnterpriseActionTool from crewai_tools.adapters.mcp_adapter import MCPServerAdapter from crewai_tools.adapters.zapier_adapter import ZapierActionTool from crewai_tools.aws.bedrock.agents.invoke_agent_tool import BedrockInvokeAgentTool from crewai_tools.aws.bedrock.kn...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/resolution/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:19:32.860552
"""Utility functions for file handling.""" from __future__ import annotations from pathlib import Path from typing import TYPE_CHECKING from crewai_files.core.sources import is_file_source if TYPE_CHECKING: from crewai_files.core.sources import FileSource, FileSourceInput from crewai_files.core.types impor...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/tests/test_file_url.py
null
null
null
null
null
null
Python
2026-05-04T02:19:32.919441
"""Tests for FileUrl source type and URL resolution.""" from unittest.mock import AsyncMock, MagicMock, patch from crewai_files import FileBytes, FileUrl, ImageFile from crewai_files.core.resolved import InlineBase64, UrlReference from crewai_files.core.sources import FilePath, _normalize_source from crewai_files.res...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/uploaders/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:33.381789
"""File uploader implementations for provider File APIs.""" from crewai_files.uploaders.base import FileUploader, UploadResult from crewai_files.uploaders.factory import get_uploader __all__ = [ "FileUploader", "UploadResult", "get_uploader", ]
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-tools/src/crewai_tools/adapters/enterprise_adapter.py
null
null
null
null
null
null
Python
2026-05-04T02:19:33.382372
import json import os import re from typing import Any, Literal, Optional, Union, _SpecialForm, cast, get_origin import warnings from crewai.tools import BaseTool from pydantic import Field, create_model import requests def get_enterprise_api_base_url() -> str: """Get the enterprise API base URL from environment...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-tools/src/crewai_tools/adapters/lancedb_adapter.py
null
null
null
null
null
null
Python
2026-05-04T02:19:34.234888
from collections.abc import Callable import os from pathlib import Path from typing import Any from crewai.utilities.lock_store import lock as store_lock from lancedb import ( # type: ignore[import-untyped] connect as lancedb_connect, ) from openai import Client as OpenAIClient from pydantic import Field, Private...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-tools/src/crewai_tools/adapters/crewai_rag_adapter.py
null
null
null
null
null
null
Python
2026-05-04T02:19:34.295756
"""Adapter for CrewAI's native RAG system.""" from __future__ import annotations import hashlib from typing import TYPE_CHECKING, Any, cast import uuid from crewai.rag.config.types import RagConfigType from crewai.rag.config.utils import get_rag_client from crewai.rag.core.base_client import BaseClient from crewai.r...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/src/crewai_files/processing/validators.py
null
null
null
null
null
null
Python
2026-05-04T02:19:34.309381
"""File validation functions for checking against provider constraints.""" from collections.abc import Sequence import io import logging from crewai_files.core.types import ( AudioFile, FileInput, ImageFile, PDFFile, TextFile, VideoFile, ) from crewai_files.processing.constraints import ( ...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-tools/src/crewai_tools/adapters/mcp_adapter.py
null
null
null
null
null
null
Python
2026-05-04T02:19:34.541419
"""MCPServer for CrewAI.""" from __future__ import annotations from collections.abc import Callable import logging from typing import TYPE_CHECKING, Any from crewai.tools import BaseTool from crewai.utilities.pydantic_schema_utils import create_model_from_schema from crewai.utilities.string_utils import sanitize_too...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-files/tests/test_upload_cache.py
null
null
null
null
null
null
Python
2026-05-04T02:19:37.380064
"""Tests for upload cache.""" from datetime import datetime, timedelta, timezone from crewai_files import FileBytes, ImageFile from crewai_files.cache.upload_cache import CachedUpload, UploadCache # Minimal valid PNG MINIMAL_PNG = ( b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x08\x00\x00\x00\x08" b"\x...
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI
null
null
null
null
50,544
null
null
mit
null
null
null
null
null
null
null
lib/crewai-tools/src/crewai_tools/adapters/rag_adapter.py
null
null
null
null
null
null
Python
2026-05-04T02:19:38.708811
from typing import Any from crewai_tools.rag.core import RAG from crewai_tools.tools.rag.rag_tool import Adapter class RAGAdapter(Adapter): def __init__( self, collection_name: str = "crewai_knowledge_base", persist_directory: str | None = None, embedding_model: str = "text-embedd...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/pkg/cmd_exec.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.019345
import os import subprocess from pathlib import Path import click from llama_dev.utils import find_all_packages, is_llama_index_package @click.command(short_help="Exec a command inside a package folder") @click.option( "--fail-fast", is_flag=True, default=False, help="Exit the command at the first f...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/pkg/bump.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.021818
import click from llama_dev.utils import ( BumpType, bump_version, find_all_packages, is_llama_index_package, load_pyproject, update_pyproject_version, ) @click.command(short_help="Bump package version") @click.argument("package_names", required=False, nargs=-1) @click.option( "--all", ...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
docs/examples/discover_llamaindex/document_management/group_conversations.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.022819
import json import sys class Message: def __init__( self, message_id, message_text, author, timestamp, parent_message=None, child_message=None, ): self.message_id = message_id self.message_text = message_text self.author = author ...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/cli.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.024222
from pathlib import Path import click from rich.console import Console from rich.theme import Theme from .pkg import pkg from .release import release from .test import test LLAMA_DEV_THEME = Theme( { "repr.path": "", "repr.filename": "", "repr.str": "", "traceback.note": "cyan", ...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
docs/examples/output_parsing/directory.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.026033
import enum from typing import List from llama_index.core.bridge.pydantic import BaseModel, Field class NodeType(str, enum.Enum): """Enumeration representing the types of nodes in a filesystem.""" FILE = "file" FOLDER = "folder" class Node(BaseModel): """ Class representing a single node in a ...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
docs/examples/finetuning/embeddings/eval_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.032917
from llama_index.core.schema import TextNode from llama_index.core import Settings from llama_index.core import VectorStoreIndex import pandas as pd from tqdm import tqdm def evaluate( dataset, embed_model, top_k=5, verbose=False, ): corpus = dataset.corpus queries = dataset.queries releva...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
docs/scripts/prepare_for_build.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.057978
# /// script # dependencies = [ # "toml", # "pyaml", # ] # /// import os import toml import yaml MKDOCS_YML = "./api_reference/mkdocs.yml" # examples config EXAMPLES_DIR = "./examples" FOLDER_NAME_TO_LABEL = { "./examples/agent": "Agents", "./examples/cookbooks": "Cookbooks", "./examples/chat_engine...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/release/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.620142
import click from .changelog import changelog from .check import check from .prepare import prepare @click.group(short_help="Utilities for the release process in the monorepo") def release(): pass # pragma: no cover release.add_command(check) release.add_command(changelog) release.add_command(prepare)
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/release/check.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.645798
import json import subprocess import urllib.request from pathlib import Path import click import tomli from packaging.version import parse as parse_version def _get_current_branch_name() -> str: return ( subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]) .decode("utf-8") ...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/release/changelog.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.657478
import json import re import shlex import subprocess from datetime import date from pathlib import Path import click from llama_dev.utils import find_all_packages, get_changed_packages, load_pyproject CHANGELOG_PLACEHOLDER = "<!--- generated changelog --->" def _run_command(command: str) -> str: """Helper to r...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.660002
import re import subprocess import sys from enum import Enum from pathlib import Path import tomli from packaging import specifiers, version from packaging.version import Version DEP_NAME_REGEX = re.compile(r"([^<>=\[\];\s]+)") class BumpType(str, Enum): MAJOR = "major" MINOR = "minor" PATCH = "patch" ...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/test/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.661173
import concurrent.futures import os import subprocess import sys import time from enum import Enum, auto from pathlib import Path import click from rich.live import Live from rich.table import Table from llama_dev.utils import ( find_all_packages, get_changed_files, get_changed_packages, get_dep_names...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/release/prepare.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.667420
from pathlib import Path import click from llama_dev.utils import ( BumpType, bump_version, load_pyproject, update_pyproject_version, ) def _replace_core_dependency(project_path: Path, old_dep: str, new_dep: str): pyproject_path = project_path / "pyproject.toml" # Read the file content w...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/pkg/info.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.668655
import json import click from rich.table import Table from llama_dev.utils import find_all_packages, is_llama_index_package, load_pyproject @click.command(short_help="Get package details") @click.argument("package_names", required=False, nargs=-1) @click.option( "--all", is_flag=True, help="Get info for...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/llama_dev/pkg/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:44.731950
import click from .bump import bump from .cmd_exec import cmd_exec from .info import info @click.group(short_help="Manage packages in the monorepo") def pkg(): pass # pragma: no cover pkg.add_command(info) pkg.add_command(cmd_exec, name="exec") pkg.add_command(bump)
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/conftest.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.261172
import sys from pathlib import Path from unittest.mock import MagicMock import pytest @pytest.fixture def data_path(): return Path(__file__).parent / "data" @pytest.fixture def mock_current_version(monkeypatch): """Fixture to mock the current Python version.""" def _set_version(major, minor, micro): ...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/pkg/test_info.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.272503
from pathlib import Path from unittest import mock import pytest from click.testing import CliRunner from llama_dev.cli import cli @pytest.fixture def mock_projects(): return { "package1": {"project": {"name": "llama-index-package1", "version": "0.1.0"}}, "package2": {"project": {"name": "llama-i...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/pkg/test_bump.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.280357
import builtins from unittest import mock from click.testing import CliRunner from llama_dev.cli import cli from llama_dev.pkg.bump import BumpType, bump_version, update_pyproject_version def test_bump_version(): assert bump_version("0.0", BumpType.PATCH) == "0.0.1" assert bump_version("0.0", BumpType.MINOR)...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/pkg/test_cmd_exec.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.294322
from unittest import mock from click.testing import CliRunner from llama_dev.cli import cli def test_cmd_exec_no_package_no_all_flag(): runner = CliRunner() result = runner.invoke(cli, ["pkg", "exec", "--cmd", "echo hello"]) assert result.exit_code != 0 assert "Either specify a package name or use th...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/test/test_test.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.312177
from pathlib import Path from unittest import mock import pytest from click.testing import CliRunner from llama_dev import test as llama_dev_test from llama_dev.cli import cli from llama_dev.test import ResultStatus, _pytest, _run_tests def mocked_coverage_failed(*args, **kwargs): return { "package": Pat...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/test_cli.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.313197
from click.testing import CliRunner from llama_dev.cli import cli def test_version(): runner = CliRunner() with runner.isolated_filesystem(): result = runner.invoke(cli, ["--version"]) assert result.exit_code == 0 assert result.output.startswith("cli, version ")
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/release/test_changelog.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.314860
import json from datetime import date from pathlib import Path from unittest import mock import pytest from click.testing import CliRunner from llama_dev.cli import cli from llama_dev.release.changelog import ( CHANGELOG_PLACEHOLDER, _extract_pr_data, _get_changelog_text, _get_latest_tag, _get_pr_n...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/release/test_check.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.349111
import json from unittest import mock import click import pytest from llama_dev.cli import cli from llama_dev.release.check import ( _get_current_branch_name, _get_version_from_pypi, _get_version_from_pyproject, check, ) def test_get_current_branch_name(): with mock.patch("subprocess.check_output...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-dev/tests/test_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.369897
from pathlib import Path from unittest import mock import pytest from llama_dev.utils import ( find_all_packages, find_integrations, find_utils, get_changed_files, get_changed_packages, get_dep_names, get_dependants_packages, is_python_version_compatible, load_pyproject, ) def tes...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.449050
"""Top-level imports for LlamaIndex.""" import logging from importlib.metadata import PackageNotFoundError, version from logging import NullHandler from typing import Callable, Optional try: __version__ = version("llama-index-core") except PackageNotFoundError: # This might happen when running tests or script...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.847689
# workflow agents + utils from llama_index.core.agent.workflow.function_agent import FunctionAgent from llama_index.core.agent.workflow.multi_agent_workflow import AgentWorkflow from llama_index.core.agent.workflow.base_agent import BaseWorkflowAgent from llama_index.core.agent.workflow.codeact_agent import CodeActAgen...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/react/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.872710
from llama_index.core.agent.react.formatter import ReActChatFormatter from llama_index.core.agent.react.output_parser import ReActOutputParser __all__ = ["ReActChatFormatter", "ReActOutputParser"]
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/react/types.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.907039
"""Base types for ReAct agent.""" from abc import abstractmethod from typing import Dict from llama_index.core.bridge.pydantic import BaseModel class BaseReasoningStep(BaseModel): """Reasoning step.""" @abstractmethod def get_content(self) -> str: """Get content.""" @property @abstract...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/react/output_parser.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.911399
"""ReAct output parser.""" import re from typing import Tuple from llama_index.core.agent.react.types import ( ActionReasoningStep, BaseReasoningStep, ResponseReasoningStep, ) from llama_index.core.output_parsers.utils import extract_json_str from llama_index.core.types import BaseOutputParser def extra...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/react/prompts.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.920855
"""Default prompt for ReAct agent.""" from pathlib import Path # TODO: have formatting instructions be a part of react output parser with ( Path(__file__).parents[0] / Path("templates") / Path("system_header_template.md") ).open("r") as f: __BASE_REACT_CHAT_SYSTEM_HEADER = f.read() REACT_CHAT_SYSTEM_HEADER =...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/react/formatter.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.928681
# ReAct agent formatter import logging from abc import abstractmethod from typing import List, Optional, Sequence from llama_index.core.agent.react.prompts import ( CONTEXT_REACT_CHAT_SYSTEM_HEADER, REACT_CHAT_SYSTEM_HEADER, ) from llama_index.core.agent.react.types import ( BaseReasoningStep, Observa...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.946815
from llama_index.core.agent.workflow.agent_context import ( AgentContext, SimpleAgentContext, ) from llama_index.core.agent.workflow.multi_agent_workflow import AgentWorkflow from llama_index.core.agent.workflow.base_agent import BaseWorkflowAgent from llama_index.core.agent.workflow.codeact_agent import CodeAc...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:19:45.959653
"""Agent utils.""" import json from llama_index.core.llms import ChatMessage, TextBlock from typing import List, Type, Dict, Any, Optional, cast from llama_index.core.bridge.pydantic import BaseModel from llama_index.core.base.llms.types import ChatMessage from llama_index.core.llms import LLM def messages_to_xml_f...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/agent_context.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.011814
""" Agent context protocol and simple implementation for non-workflow usage. This module provides a minimal duck-typed protocol that `take_step` implementations use, allowing agents to work both in full workflow contexts and in simpler scenarios like `LLM.predict_and_call`. """ from dataclasses import dataclass, fiel...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/base_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.024405
from abc import abstractmethod import functools import warnings import inspect from typing import ( Any, Callable, Dict, List, Literal, Sequence, Optional, Union, Type, cast, overload, ) from typing_extensions import deprecated from pydantic._internal._model_construction imp...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/function_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.457341
from typing import List, Optional, Sequence from llama_index.core.agent.workflow.agent_context import AgentContext from llama_index.core.agent.workflow.base_agent import BaseWorkflowAgent from llama_index.core.agent.workflow.workflow_events import ( AgentInput, AgentOutput, AgentStream, ToolCallResult,...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/codeact_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.458626
import inspect import re import uuid from typing import Awaitable, Callable, List, Sequence, Union, Optional, Tuple from llama_index.core.agent.workflow.agent_context import AgentContext from llama_index.core.agent.workflow.base_agent import BaseWorkflowAgent from llama_index.core.agent.workflow.workflow_events import...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/workflow_events.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.493353
import logging import warnings import json from typing import Any, Optional, Dict, Type from llama_index.core.bridge.pydantic import ( Field, model_serializer, ValidationError, BaseModel, ) from llama_index.core.tools import ToolSelection, ToolOutput from llama_index.core.llms import ChatMessage from l...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/multi_agent_workflow.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.494248
from abc import ABCMeta import inspect import warnings from typing import ( Any, Callable, Dict, List, Literal, Optional, Sequence, Union, Type, cast, overload, ) from typing_extensions import deprecated from pydantic import BaseModel from llama_index.core.agent.utils import...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/react_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.524181
import uuid from typing import List, Sequence, Optional, cast from llama_index.core.agent.react.formatter import ReActChatFormatter from llama_index.core.agent.react.output_parser import ReActOutputParser from llama_index.core.agent.react.prompts import CONTEXT_REACT_CHAT_SYSTEM_HEADER from llama_index.core.agent.reac...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/agent/workflow/prompts.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.526950
DEFAULT_HANDOFF_PROMPT = """Useful for handing off to another agent. If you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent. Currently available agents: {agent_info} """ DEFAULT_STATE_PROMPT = """Current state: ...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/async_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.540461
"""Async utils.""" import asyncio import contextvars import concurrent.futures from itertools import zip_longest from typing import Any, Coroutine, Iterable, List, Optional, TypeVar import llama_index.core.instrumentation as instrument dispatcher = instrument.get_dispatcher(__name__) def get_asyncio_module(show_pr...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/base/base_auto_retriever.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.587653
from abc import abstractmethod from typing import Any, List, Tuple from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.bridge.pydantic import BaseModel from llama_index.core.schema import NodeWithScore, QueryBundle class BaseAutoRetriever(BaseRetriever): """Base auto retriever.""...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/base/base_multi_modal_retriever.py
null
null
null
null
null
null
Python
2026-05-04T02:19:46.615436
"""base multi modal retriever.""" from abc import abstractmethod from typing import List from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.image_retriever import BaseImageRetriever from llama_index.core.indices.query.schema import QueryType from llama_index.core.schema import NodeWi...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/base/base_query_engine.py
null
null
null
null
null
null
Python
2026-05-04T02:19:47.104373
"""Base query engine.""" import logging from abc import abstractmethod from typing import Any, Dict, List, Optional, Sequence from llama_index.core.base.response.schema import RESPONSE_TYPE from llama_index.core.callbacks.base import CallbackManager from llama_index.core.prompts.mixin import PromptDictType, PromptMix...
run-llama/llama_index
https://github.com/run-llama/llama_index
null
null
null
null
49,114
null
null
mit
null
null
null
null
null
null
null
llama-index-core/llama_index/core/base/base_retriever.py
null
null
null
null
null
null
Python
2026-05-04T02:19:47.105072
"""Base retriever.""" from abc import abstractmethod from typing import Any, Dict, List, Optional from llama_index.core.base.base_query_engine import BaseQueryEngine from llama_index.core.callbacks.base import CallbackManager from llama_index.core.callbacks.schema import CBEventType, EventPayload from llama_index.cor...
minimaxir/big-list-of-naughty-strings
https://github.com/minimaxir/big-list-of-naughty-strings
null
null
null
null
47,631
null
null
mit
null
null
null
null
null
null
null
naughtystrings/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:49.467570
import os FILEPATH = os.path.join( os.path.abspath(os.path.dirname(os.path.dirname(__file__))), 'blns.txt') """Path to the file""" def naughty_strings(filepath=FILEPATH): """Get the list of naughty_strings. By default this will get the strings from the blns.txt file Code is a simple port of what i...
minimaxir/big-list-of-naughty-strings
https://github.com/minimaxir/big-list-of-naughty-strings
null
null
null
null
47,631
null
null
mit
null
null
null
null
null
null
null
scripts/txt_to_json.py
null
null
null
null
null
null
Python
2026-05-04T02:19:49.499843
### Quick Python Script to convert the Big List of Naughty Strings into a JSON file ### ### By Max Woolf import json with open('../blns.txt', 'r') as f: # put all lines in the file into a Python list content = f.readlines() # above line leaves trailing newline characters; strip them out content...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
finetuning-asr/lora_finetune.py
null
null
null
null
null
null
Python
2026-05-04T02:19:51.932418
#!/usr/bin/env python """ VibeVoice ASR LoRA Fine-tuning Script This script implements LoRA (Low-Rank Adaptation) fine-tuning for the VibeVoice ASR model. It uses PEFT (Parameter-Efficient Fine-Tuning) library for efficient training. """ import json import logging from pathlib import Path from typing import List, Dic...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
demo/realtime_model_inference_from_file.py
null
null
null
null
null
null
Python
2026-05-04T02:19:51.938586
import argparse import os import re import traceback from typing import List, Tuple, Union, Dict, Any import time import torch import copy import glob from vibevoice.modular.modeling_vibevoice_streaming_inference import VibeVoiceStreamingForConditionalGenerationInference from vibevoice.processor.vibevoice_streaming_pr...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:51.939909
# vibevoice/__init__.py from vibevoice.modular import ( VibeVoiceStreamingForConditionalGenerationInference, VibeVoiceStreamingConfig, ) from vibevoice.processor import ( VibeVoiceStreamingProcessor, VibeVoiceTokenizerProcessor, ) __all__ = [ "VibeVoiceStreamingForConditionalGenerationInference", ...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/configuration_vibevoice.py
null
null
null
null
null
null
Python
2026-05-04T02:19:51.945494
""" VibeVoice_AcousticTokenizer model configuration""" from typing import Dict, List, Optional, Tuple import torch from transformers.configuration_utils import PretrainedConfig from transformers.utils import logging from transformers.models.qwen2.configuration_qwen2 import Qwen2Config logger = logging.get_logger(_...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:51.946022
# vibevoice/modular/__init__.py from .modeling_vibevoice_streaming_inference import VibeVoiceStreamingForConditionalGenerationInference from .configuration_vibevoice_streaming import VibeVoiceStreamingConfig from .modeling_vibevoice_streaming import VibeVoiceStreamingModel, VibeVoiceStreamingPreTrainedModel from .strea...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
demo/web/app.py
null
null
null
null
null
null
Python
2026-05-04T02:19:51.958208
import datetime import builtins import asyncio import json import os import threading import traceback from pathlib import Path from queue import Empty, Queue from typing import Any, Callable, Dict, Iterator, Optional, Tuple, cast import numpy as np import torch from fastapi import FastAPI, WebSocket from fastapi.resp...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
demo/vibevoice_asr_inference_from_file.py
null
null
null
null
null
null
Python
2026-05-04T02:19:51.974764
#!/usr/bin/env python """ VibeVoice ASR Batch Inference Demo Script This script supports batch inference for ASR model and compares results between batch processing and single-sample processing. """ import os import sys import torch import numpy as np from pathlib import Path import argparse import time import json i...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
demo/vibevoice_asr_gradio_demo.py
null
null
null
null
null
null
Python
2026-05-04T02:19:51.989076
#!/usr/bin/env python """ VibeVoice ASR Gradio Demo """ import os import sys import torch import numpy as np import soundfile as sf from pathlib import Path import argparse import time import json import gradio as gr from typing import List, Dict, Tuple, Optional, Generator import tempfile import base64 import io impo...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
demo/vibevoice_realtime_demo.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.045439
import argparse, os, uvicorn def main(): p = argparse.ArgumentParser() p.add_argument("--port", type=int, default=3000) p.add_argument("--model_path", type=str, default="microsoft/VibeVoice-Realtime-0.5B") p.add_argument("--device", type=str, default="cuda", choices=["cpu", "cuda", "mpx", "mps"]) p...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
finetuning-asr/inference_lora.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.057549
#!/usr/bin/env python """ Inference with LoRA Fine-tuned VibeVoice ASR Model This script loads a LoRA fine-tuned model and runs inference. Usage: python inference_lora.py \ --base_model microsoft/VibeVoice-ASR \ --lora_path ./output \ --audio_file ./toy_dataset/0.mp3 """ import argparse i...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/configuration_vibevoice_streaming.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.546670
""" VibeVoice Streaming model configuration""" import torch from transformers.configuration_utils import PretrainedConfig from transformers.utils import logging from transformers.models.qwen2.configuration_qwen2 import Qwen2Config from .configuration_vibevoice import VibeVoiceAcousticTokenizerConfig, VibeVoiceDiffu...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/modular_vibevoice_diffusion_head.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.561466
import math from typing import Optional, Tuple, Union import torch import torch.nn as nn import torch.nn.functional as F from transformers.models.auto import AutoModel from transformers.modeling_utils import PreTrainedModel # from transformers.modeling_layers import GradientCheckpointingLayer from transformers.activa...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/modeling_vibevoice_asr.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.562951
from typing import List, Optional, Tuple, Union import torch import torch.nn as nn from transformers.models.auto import AutoModel, AutoModelForCausalLM from transformers.modeling_outputs import CausalLMOutput, BaseModelOutputWithPast from transformers import modeling_utils from transformers.modeling_utils import PreT...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/modeling_vibevoice_streaming.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.579573
from dataclasses import dataclass from typing import Dict, List, Optional, Tuple, Union, Callable from tqdm import tqdm import copy import torch import torch.nn as nn import torch.nn.functional as F import torch.distributed as dist from transformers.models.auto import AutoModel, AutoModelForCausalLM from transformers...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/modular_vibevoice_tokenizer.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.641252
import math import typing as tp from functools import partial from dataclasses import dataclass, field from typing import Dict, List, Optional, Tuple, Union import copy import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from transformers.models.auto import AutoModel from transforme...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/modeling_vibevoice.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.654481
# copied from https://github.com/vibevoice-community/VibeVoice/blob/main/vibevoice/modular/modeling_vibevoice.py from dataclasses import dataclass from typing import Dict, List, Optional, Tuple, Union, Callable from tqdm import tqdm import torch import torch.nn as nn import torch.nn.functional as F import torch.distrib...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/modular/modular_vibevoice_text_tokenizer.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.658883
"""Tokenization classes for vibevoice.""" from typing import List, Optional, Union from transformers.utils import logging from transformers.models.qwen2.tokenization_qwen2 import Qwen2Tokenizer from transformers.models.qwen2.tokenization_qwen2_fast import Qwen2TokenizerFast logger = logging.get_logger(__name__) cl...
microsoft/VibeVoice
https://github.com/microsoft/VibeVoice
null
null
null
null
46,378
null
null
mit
null
null
null
null
null
null
null
vibevoice/processor/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:52.664937
# vibevoice/processor/__init__.py from .vibevoice_processor import VibeVoiceProcessor from .vibevoice_streaming_processor import VibeVoiceStreamingProcessor from .vibevoice_tokenizer_processor import VibeVoiceTokenizerProcessor, AudioNormalizer __all__ = [ "VibeVoiceProcessor", "VibeVoiceStreamingProcessor", ...