Skip to main content

A library of prompts for Python

Project description

https://github.com/ctava/searchagent/actions/workflows/test.yaml/badge.svg

searchagent is an Apache2 licensed library for storing prompts, filters and rules for summaryization and question and answer tasks with large language models. Test coverage is currently 100%. Documentation is available here.

Why?

  • For production, once you ship your binary, how are you going to maintain the prompts?

  • As a team, is there a centralized place to store prompts for re-use?

  • Because some other libraries are heavy weight.

How to Use

$ pip install searchagent
from searchagent.prompts import Prompts
def someMethod():
    prompts = Prompts().get_data()
    print(prompts["system"])
    print(prompts["task-write-email"])
    print(prompts["task-summarize-text"])
    print(prompts["question-capital-of-united-states"])
    print(prompts["question-whats-weather-like"])

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 Distribution

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

searchagent-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file searchagent-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: searchagent-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for searchagent-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 390e350c873f41d4a5b553767a747ac3b6bda0a4d3a3531c1df7bef759eb9c15
MD5 e75c91c97848dbcdc754d15fbb10fa79
BLAKE2b-256 90fcdcdc19020240272b73afaa8eb458849675ca6ee564ce203f06f2cf904486

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