Hacker GitHub

← All repos

minimaxir/simpleaichat

View on GitHub ↗ ★ 3,490 Python

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

21 mentions on Hacker News by 11 people: 4 stories, 17 comments · first 2023-06-08 · latest 2025-05-05

Mentions per year 21 mentions · busiest year 2023 (20)
20082026
  1. I was developing an open-source library for interfacing with LLMs agnostically ( https://github.com/minimaxir/simpleaichat ) and although it still works, I haven't had the time to maintain it unfortunately. Nowadays for writing code to…
  2. …plus a function calling trick which allows you to get the improved result in a single API call: https://github.com/minimaxir/simpleaichat/blob/main/examples...
    comment by minimaxir · 2023-12-17 · in Promptbase: All things prompt engineering
  3. …of its power). Here's a fun demo example which compares system prompts and structured data results: https://github.com/minimaxir/simpleaichat/blob/main/examples...
    comment by minimaxir · 2023-12-15 · in Prompt engineering
  4. …asked those questions were greeted by a software author who lashed out at them. See for yourself: https://github.com/minimaxir/simpleaichat/issues/91 https://github.com/minimaxir/simpleaichat/issues/92 One person who asked (rightfully,…
  5. …both the issues mentioned, people have been respectful and showing empathy to author's situation https://github.com/minimaxir/simpleaichat/issues/91 https://github.com/minimaxir/simpleaichat/issues/92
  6. …structured data for better output control, lightly leveraging my Python package to reduce LoC: https://github.com/minimaxir/simpleaichat/blob/main/examples...
  7. So what are the alternatives to LangChain that the HN crowd uses? I see two contenders: https://github.com/minimaxir/simpleaichat/tree/main/simpleai... https://github.com/griptape-ai/griptape There is also the llm command line utility that…
  8. …"make it more efficient") works best, with system prompt engineering to result in less code output: https://github.com/minimaxir/simpleaichat/blob/main/examples...
    comment by minimaxir · 2023-07-20 · in Custom instructions for ChatGPT
  9. …like a nice wrapper. I'm especially looking forward to playing with the structured data models bit: https://github.com/minimaxir/simpleaichat/blob/main/examples... Well done, Max!
    comment by stavros · 2023-07-15 · in The Problem with LangChain
  10. …as cheap as possible, but still much more capable of modern AI tricks than most implementations" https://github.com/minimaxir/simpleaichat Separately, in the article, typo expect->except here: "LangChain uses about the same amount of code…
    comment by Terretta · 2023-07-14 · in The Problem with LangChain
  11. …Also, the tools here are incredibly simple and easy to understand (very new) so looking at, say, https://github.com/minimaxir/simpleaichat/tree/main/simpleai... or https://github.com/smol-ai/developer and digging in to the prompts, what…
    comment by theptip · 2023-07-02 · in Stanford A.I. Courses
  12. I've spent a lot of time experimenting with schema: https://github.com/minimaxir/simpleaichat/blob/main/examples...
  13. Ah, I see I've been ninja'd by about 17 hours: https://github.com/minimaxir/simpleaichat/releases/tag/v0.2.... :-D
  14. The project has an implementation for the function logic: https://github.com/minimaxir/simpleaichat#functions
  15. …my blog post on how to do it efficiently, but in practice it's just a simple, small prompt: https://github.com/minimaxir/simpleaichat/blob/main/PROMPTS....
  16. …a demo of some system prompt engineering which resulted in better results for the older ChatGPT: https://github.com/minimaxir/simpleaichat/blob/main/examples... Coincidentially, the new gpt-3.5-turbo-0613 model also has better system…
    comment by minimaxir · 2023-06-14 · in Native JSON Output from GPT-4
  17. …for it so perhaps it'll be more reliable. While developing a more-simple LangChain alternative ( https://github.com/minimaxir/simpleaichat ) I discovered a neat trick for allowing ChatGPT to select tools from a list reliably: put the list…
    comment by minimaxir · 2023-06-13 · in Function calling and other API updates