rudolfolah / chaincrafter Goto Github PK
View Code? Open in Web Editor NEW:hammer: Seamless integration and composability for large language model apps :paperclip:
Home Page: https://rudolfolah.github.io/chaincrafter/
License: MIT License
:hammer: Seamless integration and composability for large language model apps :paperclip:
Home Page: https://rudolfolah.github.io/chaincrafter/
License: MIT License
When adding code from any language that uses braces such as JavaScript, the {
needs to be escaped. Alternatively, there could be an option to skip the format-string entirely and treat the prompt as already formatted.
the current README on https://pypi.org/project/chaincrafter/ is useful for local development
LOCAL_DEV.md
and PUBLISH_BUILD.md
I'm trying to run some of the examples and I keep on getting this error.
ImportError: cannot import name 'Chain' from partially initialized module 'chaincrafter' (most likely due to a circular import) (chaincrafter/__init__.py)
How I reached this point:
hello_world.py
under ./python/examplesWhen I run the __init__.py
script, there are no errors. I thought it might be an issue of importing incorrectly. The original import is
from chaincrafter import Chain, Prompt
while in the __init__.py
script, these lines ares used
from chaincrafter.chains import Chain
from chaincrafter.prompts import Prompt
still getting the same error nonetheless.
The current code will overwrite the starting input vars using the output of the previous prompt.
The fix is to update the input vars dictionary that is passed to the prompt that is being run. This requires that input var names are unique.
To test this:
ChatModel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.