agency

Agency: Robust LLM Agent Management with Go (by ryszard)

Agency Alternatives

Similar projects and alternatives to agency

  1. guidance

    90 agency VS guidance

    Discontinued A guidance language for controlling large language models. [Moved to: https://github.com/guidance-ai/guidance] (by microsoft)

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. tiktoken

    40 agency VS tiktoken

    tiktoken is a fast BPE tokeniser for use with OpenAI's models.

  4. chat-with-gpt

    39 agency VS chat-with-gpt

    An open-source ChatGPT app with a voice

  5. lmql

    34 agency VS lmql

    A language for constraint-guided and efficient LLM programming.

  6. Constrained-Text-Generation-Studio

    Code repo for "Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio" at the (CAI2) workshop, jointly held at (COLING 2022)

  7. panml

    25 agency VS panml

    PanML is a high level generative AI/ML development and analysis library designed for ease of use and fast experimentation.

  8. simpleaichat

    Python package for easily interfacing with chat apps, with robust features and minimal code complexity.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. nn-zero-to-hero

    10 agency VS nn-zero-to-hero

    Neural Networks: Zero to Hero

  11. tokenizer

    Pure Go implementation of OpenAI's tiktoken tokenizer

  12. llama.go

    llama.go is like llama.cpp in pure Golang!

  13. simpleAI

    11 agency VS simpleAI

    An easy way to host your own AI API and expose alternative models, while being compatible with "open" AI clients.

  14. feste

    2 agency VS feste

    Feste is a free and open-source framework allowing scalable composition of NLP tasks using a graph execution model that is optimized and executed by specialized schedulers.

  15. gpt4-tokenizer-visualizer

    GPT4 Tokenizer Visualizer

  16. llama-tokenizer-js

    JS tokenizer for LLaMA 1 and 2

  17. fastbpe

    Java library implementing Byte-Pair Encoding Tokenization (by deepanprabhu)

  18. tiktoken

    3 agency VS tiktoken

    JS port and JS/WASM bindings for openai/tiktoken (by dqbd)

  19. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better agency alternative or higher similarity.

agency discussion

Log in or Post with

agency reviews and mentions

Posts with mentions or reviews of agency. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-13.
  • Show HN: LLaMA tokenizer that runs in browser
    7 projects | news.ycombinator.com | 13 Jun 2023
    Tokenizers seem to be a massive pain in the neck if you are just calling into an API to use your model. The algorithm itself is non-trivial, and they need pretty sizable data to function: the vocabulary and the merges, which just sit there, using memory. I'm writing https://github.com/ryszard/agency in Go, and while there's a good library for the OpenAI tokenization, if you want a tokenizer for the HF models the best I found was a library calling HF's Rust implementation, which makes it horrible for distribution.

    However, at some point I realized that I needed not really the tokens, but the token count, as my most important use was implementing a Token Buffer Memory (trim messages from the beginning in such a way that you never exceed a context size number of tokens). And in order to do that I don't need it to be exactly right, just mostly right, if I am ok with slightly suboptimal efficiency (keeping slightly less tokens than the model supports). So, I took files from Project Gutenberg, and compared the ratio of tokens I get using a proper tokenizer and just calling `strings.Split`, and it seems to be remarkably stable for a given model and language (multiply the length of the result of splitting on spaces by 1.55 for OpenAI and 1.7 for Claude, which leaves a tiny safety margin).

    I'm not throwing shade at this project – just being able to call the tokenizer would've saved me a lot of time. But I hope that if I'm wrong about the estimates bring good enough some good person will point out the error of my ways :)

  • Understanding GPT Tokenizers
    10 projects | news.ycombinator.com | 8 Jun 2023
    How I wish this post had appeared a few days earlier... I am writing on my own library for some agent experiments (in go, to make my life more interesting I guess), and knowing the number of tokens is important to implement a token buffer memory (as you approach the model's context window size, you prune enough messages from the beginning of the conversation that the whole thing keeps some given size, in tokens). While there's a nice native library in go for OpenAI models (https://github.com/tiktoken-go/tokenizer), the only library I found for Hugging Face models (and Claude, they published their tokenizer spec in the same JSON format) calls into HF's Rust implementation, which makes it challenging as a dependency in Go. What is more, any tokenizer needs to keep some representation of its vocabulary in memory. So, in the end I removed the true tokenizers, and ended up using an approximate version (just split it in on spaces and multiply by a factor I determined experimentally for the models I use using the real tokenizer, with a little extra for safety). If it turns out someone needs the real thing they can always provide their own token counter). I was actually rather happy with this result: I have less dependencies, and use less memory. But to get there I needed to do a deep dive too understand BPE tokenizers :)

    (The library, if anyone is interested: https://github.com/ryszard/agency.)

  • [P] I got fed up with LangChain, so I made a simple open-source alternative for building Python AI apps as easy and intuitive as possible.
    7 projects | /r/MachineLearning | 8 Jun 2023
    I completely agree about langchain being brittle; what I really hate is that it's really hard to make sense about what is going on by reading the code. I was similarly frustrated and rolled my own thing on go (shameless plug): https://github.com/ryszard/agency
  • 🏢🤖Agency - An Idiomatic Go Interface for the OpenAI API🚀
    1 project | /r/aipromptprogramming | 2 Jun 2023
  • Agency - An Idiomatic Go Interface for the OpenAI API (request for feedback)
    1 project | /r/golang | 1 Jun 2023
  • A note from our sponsor - Stream
    getstream.io | 20 Jul 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →

Stats

Basic agency repo stats
5
67
7.0
over 1 year ago

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

Did you know that Go is
the 4th most popular programming language
based on number of references?