Coder Social home page Coder Social logo

citoplasm's People

Contributors

geoffreylitt avatar joshpoll avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

citoplasm's Issues

Prompt Engineer CITO and functions.

There's a lot of room to explore better CITO prompts following prompt engineering best practices. One challenge of doing this in CITOplasm is the need to balance high quality prompts with generalizability across different functions that use CITO. So far, it seems like it might be possible to get away with a universal CITO prompt, but we'll see!

Prompt Engineering resources:

In addition to best practices, it's worth exploring different potential output formats. e.g. JSON, YAML, XML.

LangChain Adapter

We should have documentation and possibly code that lets us interface with LangChain agents, chains, and tools.

Optimize prompts with LMQL?

LMQL is a prompt engineering language that could be a good target for optimizing CITOplasms. Inspired by PyTorch et al., one possible idea is to record a trace of a CITOplasm execution and try to fuse neighboring CITOplasm calls into a single prompt to trade off time and accuracy. It might also be possible to fine tune prompts to particular scenarios.

In this way, we can keep the user-facing API nice and declarative without sacrificing perf.

Add an `examples` field to CITO

This will make it easier to produce more robust output by encapsulating the k-shot pattern.

This should probably be a list of records.

Each record should contain

  • context(?)
  • input
  • thought
  • output

Several of our functions already use an ad-hoc examples pattern so it would be fairly straightforward to push it into the cito API.

Add more test cases.

The functions we have currently are way undertested. It would be very useful to have more tests!

Flesh out the `Context` concept.

Context requires thinking about state management more precisely. One option we've considered is using with blocks. e.g.

with LocalContext as context:
  ...

The advantage of making a Context primitive is that it lets us abstract over how to structure the context section.

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.