GithubHelp home page GithubHelp logo

latent-langs's Introduction

latent-langs

LLM language design is a method for structuring the outputs of large language models. You can think of the language grammars as sophisticated templates which if instructed LLMs will fill the "holes" of when generating text. They are a means of declaratively guiding the behavior of LLMs on a number of axes.

ConceptScript has been an attempt to find a meeting point between the internal structures of LLMs and human thinking. The primary use cases I've found so far are: drawing out rich detailed information from minimal input, distilling complex textual sources to logical essences, evolving conceptual models through LLM dialog as a means of theoretical exploration, and automated synthesis of heterogeneous complex ideas.

I believe much of the value here is in language design as a general technique for interacting with LLMs: a kind of precision tool for "LLM whisperers". I don't think ConceptScript or any other LLM language will attain a perfected final form; what makes a language optimal is relative to the model it runs on and the problem you're trying to solve. That said, there are enough commonalities between models at this point that many general principles will likely be stable over time and across models: I'm sure many remain to be discovered, too.

The purpose of this repository is to share my findings so far on this topic, and to provide some structure for continued collaborative exploration.

Overview of included languages

  • ConceptScript: used for conceptual modeling and exploration—the most well-developed of the set.
  • LatentScript: used for doing semi-automated analysis, pulling rich/diverse info into context first; very early in development, not really ready for use yet (temporary name).
  • ModelScript: basically a minimalist/essentialized version of ConceptScript. It's the most recent development, not yet thoroughly tested but likely the best bet for many use cases.

Basic usage instructions for ConceptScript

  • Paste the boot prompt into context: boot_prompt.txt
  • This will generate a first Concept combining ideas from the embedded example Concepts
  • Ask the LLM (works best with Claude so far) to express various things as Concepts
  • Iterate on the generated Concept, requesting modifications or for various operations to be performed.

There is a bit of art to it, so I'd recommend watching the video below for a more in-depth introduction.

YouTube video: Introduction to LLM languages+ConceptScript

And here's a fun way to view Concepts—it's loaded with one by default but you can paste your own in: https://westoncb.github.io/concept_inspector/

latent-langs's People

Contributors

westoncb avatar

Stargazers

Facundo Lerena avatar  avatar Daniel Moon avatar Ross Waycaster avatar  avatar Kevin Armengol avatar Corey Reece avatar  avatar Jackson Barnes avatar  avatar Anirudh Dharmarajan avatar  avatar cσgscídєs avatar Marc Green avatar Zachariah Mustafa avatar Nate Baer avatar Ned Twigg avatar Bryton Shoffner avatar

Watchers

 avatar Ned Twigg avatar  avatar

Forkers

codeaudit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.