ragbits-core


Nameragbits-core JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummaryBuilding blocks for rapid development of GenAI applications
upload_time2025-07-09 15:46:10
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords genai generative ai llms large language models prompt management rag retrieval augmented generation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Ragbits Core

Ragbits Core is a collection of utilities and tools that are used across all Ragbits packages. It includes fundamentals, such as utilities for logging, configuration, prompt creation, classes for comunicating with LLMs, embedders, vector stores, and more.

## Installation

```sh
pip install ragbits-core
```

## Quick Start

```python
from pydantic import BaseModel
from ragbits.core.prompt import Prompt
from ragbits.core.llms.litellm import LiteLLM


class Dog(BaseModel):
    breed: str
    age: int
    temperament: str

class DogNamePrompt(Prompt[Dog, str]):
    system_prompt = """
    You are a dog name generator. You come up with funny names for dogs given the dog details.
    """

    user_prompt = """
    The dog is a {breed} breed, {age} years old, and has a {temperament} temperament.
    """

async def main() -> None:
    llm = LiteLLM("gpt-4o")
    dog = Dog(breed="Golden Retriever", age=3, temperament="friendly")
    prompt = DogNamePrompt(dog)
    response = await llm.generate(prompt)
    print(response)


if __name__ == "__main__":
    asyncio.run(main())
```

## Documentation
* [Quickstart 1: Working with Prompts and LLMs](https://ragbits.deepsense.ai/quickstart/quickstart1_prompts/)
* [How-To Guides - Core](https://ragbits.deepsense.ai/how-to/prompts/use_prompting/)
* [API Reference - Core](https://ragbits.deepsense.ai/api_reference/core/prompt/)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ragbits-core",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "GenAI, Generative AI, LLMs, Large Language Models, Prompt Management, RAG, Retrieval Augmented Generation",
    "author": null,
    "author_email": "\"deepsense.ai\" <ragbits@deepsense.ai>",
    "download_url": "https://files.pythonhosted.org/packages/f6/63/81ce193368463258236319e2e436e6ca54f6670646da02b93f59a05cace7/ragbits_core-1.1.0.tar.gz",
    "platform": null,
    "description": "# Ragbits Core\n\nRagbits Core is a collection of utilities and tools that are used across all Ragbits packages. It includes fundamentals, such as utilities for logging, configuration, prompt creation, classes for comunicating with LLMs, embedders, vector stores, and more.\n\n## Installation\n\n```sh\npip install ragbits-core\n```\n\n## Quick Start\n\n```python\nfrom pydantic import BaseModel\nfrom ragbits.core.prompt import Prompt\nfrom ragbits.core.llms.litellm import LiteLLM\n\n\nclass Dog(BaseModel):\n    breed: str\n    age: int\n    temperament: str\n\nclass DogNamePrompt(Prompt[Dog, str]):\n    system_prompt = \"\"\"\n    You are a dog name generator. You come up with funny names for dogs given the dog details.\n    \"\"\"\n\n    user_prompt = \"\"\"\n    The dog is a {breed} breed, {age} years old, and has a {temperament} temperament.\n    \"\"\"\n\nasync def main() -> None:\n    llm = LiteLLM(\"gpt-4o\")\n    dog = Dog(breed=\"Golden Retriever\", age=3, temperament=\"friendly\")\n    prompt = DogNamePrompt(dog)\n    response = await llm.generate(prompt)\n    print(response)\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Documentation\n* [Quickstart 1: Working with Prompts and LLMs](https://ragbits.deepsense.ai/quickstart/quickstart1_prompts/)\n* [How-To Guides - Core](https://ragbits.deepsense.ai/how-to/prompts/use_prompting/)\n* [API Reference - Core](https://ragbits.deepsense.ai/api_reference/core/prompt/)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Building blocks for rapid development of GenAI applications",
    "version": "1.1.0",
    "project_urls": {
        "Bug Reports": "https://github.com/deepsense-ai/ragbits/issues",
        "Documentation": "https://ragbits.deepsense.ai/",
        "Homepage": "https://github.com/deepsense-ai/ragbits",
        "Source": "https://github.com/deepsense-ai/ragbits"
    },
    "split_keywords": [
        "genai",
        " generative ai",
        " llms",
        " large language models",
        " prompt management",
        " rag",
        " retrieval augmented generation"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c98809b6fe9ca2a45796534aaa6dd5697c4b12f09eb91b1d2142236ea1d11f89",
                "md5": "8a401a47fc43059df776949dedf8acf8",
                "sha256": "c68bb8d1a876607526fdb512a74270c7209bf7114f67741e5e93ba43e4fd2d37"
            },
            "downloads": -1,
            "filename": "ragbits_core-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8a401a47fc43059df776949dedf8acf8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 110575,
            "upload_time": "2025-07-09T15:46:03",
            "upload_time_iso_8601": "2025-07-09T15:46:03.186786Z",
            "url": "https://files.pythonhosted.org/packages/c9/88/09b6fe9ca2a45796534aaa6dd5697c4b12f09eb91b1d2142236ea1d11f89/ragbits_core-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f66381ce193368463258236319e2e436e6ca54f6670646da02b93f59a05cace7",
                "md5": "a86b6fb2193d0593b5c3c2fc16a30d30",
                "sha256": "7ceb91f13372be25eea3935717508b0ae3404a76642259c149cd034635db892b"
            },
            "downloads": -1,
            "filename": "ragbits_core-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a86b6fb2193d0593b5c3c2fc16a30d30",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 166867,
            "upload_time": "2025-07-09T15:46:10",
            "upload_time_iso_8601": "2025-07-09T15:46:10.752277Z",
            "url": "https://files.pythonhosted.org/packages/f6/63/81ce193368463258236319e2e436e6ca54f6670646da02b93f59a05cace7/ragbits_core-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-09 15:46:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "deepsense-ai",
    "github_project": "ragbits",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ragbits-core"
}
        
Elapsed time: 1.61498s