graph-of-thoughts
prompt-lib
graph-of-thoughts | prompt-lib | |
---|---|---|
2 | 1 | |
1,895 | 98 | |
5.3% | - | |
6.4 | 7.2 | |
about 1 month ago | 7 months ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
graph-of-thoughts
-
Q* Could Be It - Forget AlphaGO - It's Diplomacy - Peg 1 May Have Fallen - Noam Brown May Have Achieved The Improbable - Is this Q* Leak 2.0?
We introduce Graph of Thoughts (GoT): a framework that advances prompting capabilities in large language models (LLMs) beyond those offered by paradigms such as Chain-ofThought or Tree of Thoughts (ToT). The key idea and primary advantage of GoT is the ability to model the information generated by an LLM as an arbitrary graph, where units of information (“LLM thoughts”) are vertices, and edges correspond to dependencies between these vertices. This approach enables combining arbitrary LLM thoughts into synergistic outcomes, distilling the essence of whole networks of thoughts, or enhancing thoughts using feedback loops. We illustrate that GoT offers advantages over state of the art on different tasks, for example increasing the quality of sorting by 62% over ToT, while simultaneously reducing costs by >31%. We ensure that GoT is extensible with new thought transformations and thus can be used to spearhead new prompting schemes. This work brings the LLM reasoning closer to human thinking or brain mechanisms such as recurrence, both of which form complex networks. Website & code: https://github.com/spcl/graph-of-thoughts
-
Graph of Thoughts: Solving Elaborate Problems with Large Language Models
https://github.com/spcl/graph-of-thoughts Code for the paper too
prompt-lib
-
Using Da-Vinci-003 in a Jupyter Notebook
While it's a bit of an overkill, prompt-lib provides a notebook to do this: https://github.com/reasoning-machines/prompt-lib/blob/main/notebooks/QueryOpenAI.ipynb
What are some alternatives?
trex - Enforce structured output from LLMs 100% of the time
HugNLP - CIKM2023 Best Demo Paper Award. HugNLP is a unified and comprehensive NLP library based on HuggingFace Transformer. Please hugging for NLP now!😊
prompttools - Open-source tools for prompt testing and experimentation, with support for both LLMs (e.g. OpenAI, LLaMA) and vector databases (e.g. Chroma, Weaviate, LanceDB).
self-refine - LLMs can generate feedback on their work, use it to improve the output, and repeat this process iteratively.
llm-guard - The Security Toolkit for LLM Interactions
Awesome-Prompt-Engineering - This repository contains a hand-curated resources for Prompt Engineering with a focus on Generative Pre-trained Transformer (GPT), ChatGPT, PaLM etc
ToolEmu - A language model (LM)-based emulation framework for identifying the risks of LM agents with tool use
qagnn - [NAACL 2021] QAGNN: Question Answering using Language Models and Knowledge Graphs 🤖
ChainFury - 🦋 Production grade chaining engine behind TuneChat. Self host today!
pal - PaL: Program-Aided Language Models (ICML 2023)
promptmap - automatically tests prompt injection attacks on ChatGPT instances
knowledge-rumination - [EMNLP 2023] Knowledge Rumination for Pre-trained Language Models