Skip to main content

An Extension of fabricatio aiming to extend the context llm could handle.

Project description

fabricatio-memory

An Extension of fabricatio aiming to extend the context llm could handle..


📦 Installation

This package is part of the fabricatio monorepo and can be installed as an optional dependency:

pip install fabricatio[memory]

Or install all components:

pip install fabricatio[full]

🔍 Overview

Provides essential tools for:

Context Expansion

This package enables the extension of the context that an LLM can handle. It does this by storing and retrieving relevant information from a memory system. For example, it can keep track of previous conversations, user preferences, and domain - specific knowledge, allowing the LLM to have a more comprehensive understanding of the current input.

Memory Management

It offers features for managing the memory used by the LLM. This includes tasks such as memory allocation, deallocation, and optimization. It ensures that the memory is used efficiently and that the LLM can access the necessary information quickly.

Integration with Fabricatio

The package is designed to work seamlessly with the Fabricatio framework. It can leverage the capabilities of Fabricatio's agent framework to manage the memory in a more intelligent way and integrate with other modules in the ecosystem.

...

🧩 Key Features

Long - Term Memory Storage

The long - term memory storage feature allows the LLM to store information over an extended period. It can save important data such as user profiles, historical conversations, and domain knowledge. This information can be retrieved later to provide more personalized and context - aware responses.

Short - Term Memory Buffer

The short - term memory buffer is used to store the most recent information. It helps the LLM to maintain a context for the current conversation and respond more coherently. For example, it can remember the last few messages in a chat session.

Memory Retrieval Mechanisms

The package provides efficient memory retrieval mechanisms. It can search through the stored memory based on keywords, context, or other criteria to find the relevant information. This ensures that the LLM can access the necessary data quickly and accurately.

...

🔗 Dependencies

Core dependencies:

  • fabricatio-core - Core interfaces and utilities This dependency provides the fundamental building blocks for the Fabricatio framework. It includes interfaces for task management, event handling, and data models. The fabricatio-memory package uses these interfaces to interact with other modules in the Fabricatio ecosystem and manage the memory effectively. ...

📄 License

MIT – see LICENSE

GitHub: github.com/Whth/fabricatio

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fabricatio_memory-0.2.7.dev0-cp314-cp314-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.14Windows x86-64

fabricatio_memory-0.2.7.dev0-cp314-cp314-manylinux_2_34_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

fabricatio_memory-0.2.7.dev0-cp314-cp314-manylinux_2_34_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

fabricatio_memory-0.2.7.dev0-cp314-cp314-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

fabricatio_memory-0.2.7.dev0-cp313-cp313-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.13Windows x86-64

fabricatio_memory-0.2.7.dev0-cp313-cp313-manylinux_2_34_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_memory-0.2.7.dev0-cp313-cp313-manylinux_2_34_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

fabricatio_memory-0.2.7.dev0-cp313-cp313-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fabricatio_memory-0.2.7.dev0-cp312-cp312-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.12Windows x86-64

fabricatio_memory-0.2.7.dev0-cp312-cp312-manylinux_2_34_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

fabricatio_memory-0.2.7.dev0-cp312-cp312-manylinux_2_34_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

fabricatio_memory-0.2.7.dev0-cp312-cp312-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 379b5b2b1b313beebbec058e22387926bb9316af8160fd17f6a7325f7bb705f0
MD5 1c4852945107600590317b7a0a8e5597
BLAKE2b-256 0baf3f711e585d989c1e2698eeb82cd764cf46badd0c2695337eb1c63eed47c0

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ecb4d6904ed22a34687952aadc5ab9ddca41a4c9b5e9e7811c8906ef0de99a45
MD5 e7ea47ebdc821a861aa971724074b120
BLAKE2b-256 83edbd4448e62d88dee8067ee52b2efe7b0ae55c2c68150f9e63c27305557ac1

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 e9616f4f6eddad3c665408d89cc8d28d50870cd8dcc7b56f059d359f38a3ce1c
MD5 51e0cbcf3a238adaf963984e236584de
BLAKE2b-256 a2a0c9bbb09b37a2c6df9a498b85d3773057587689b56ed0803a704dc2fab5c1

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5477a093db6c133b375f8f5962baf407cb236ccec32b0995b1d7a4fdc838e34
MD5 d776fcbda9b1942478940be55f01c348
BLAKE2b-256 fe0dc74c72fa5800cb8816e0c35b6142c85fdb0aac72e7212b27f98e7dd7fbb3

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2d0b9baefe3f30ec676561d67bad08bb0daf5ab9a464d4c1d2b40989befca851
MD5 bca128dfc9b24a4545fb5f59a77a43a2
BLAKE2b-256 fd193e95195b80dfd19cf1926ff5e9aab1a2761ed748941894c226bb75e98629

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 89fd56268866e1cf6609bbc0d89e4dc97884db37420ea20b29564524f1d1e0d6
MD5 e59093990f42f0122010602f5bf4c5e5
BLAKE2b-256 d6b93a6d9da5a3c61e41b272733c9845ebfa48257de840e3fe36f51c9729aa0a

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 bfc99a9e71aa43a6f552d8e92006c43ebb07a26a887ff42788ef638028408737
MD5 38991e6ed0181657f51608526ae2ddda
BLAKE2b-256 ff6dfbbb0ad70070f1d889d4915801a3b4fa9f58eab8d51b11365e0878b14fd2

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfe14956e2367329686860ccf4008d5976e16378efe471d6c47db2cb0b2d4754
MD5 fb2312cb52dc8dbe3807840e981804ee
BLAKE2b-256 267999b329e048dcf3cd7878d90c9a3b7a62d24e1b203fa20f886b2e3cdec5ec

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 920dfe43f54414efae759c9381125c9cceae55fa2a261e3eff75a795263f192d
MD5 e4cf562737dadacfc5af1b77ac2822e5
BLAKE2b-256 44acc7c851233130622f670ff455c95769e6c585109f9671727c13df0ed9a4c4

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 88c742554e1742805241f359ae7bbaba687fe652d40b4cc4aad6619110b1f8e1
MD5 bf6d0a19c614fb54c0b154707fdf6015
BLAKE2b-256 c7a1294afacae0d2d71ef255bef3a3ccaff93b2d4e5333efa85bf16f4d156d9b

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b9ac5a6cffad11e49ef7eaad920355747662aba76e516c98729035c71a0090d2
MD5 d4ca573725aff93248c9a616d430c5ff
BLAKE2b-256 3d8768a32bf2f49c98b73bf652e4dfd691c6557e1ac92af46ce946363dbd1223

See more details on using hashes here.

File details

Details for the file fabricatio_memory-0.2.7.dev0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fabricatio_memory-0.2.7.dev0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 524f0aac5eff66e4f3d832f79f244c4565e3a06d6d0d093ec7c13229fe401fb8
MD5 6b7cfef2382e94ac542a39c71cd6651b
BLAKE2b-256 bca11189e898b5e670914af5f1bf07b16aa42c981e3d1245845e0c84f048440e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page