thousandbirdsinc / chidori Goto Github PK
View Code? Open in Web Editor NEWA reactive runtime for building durable AI agents
Home Page: https://docs.thousandbirds.ai
License: MIT License
A reactive runtime for building durable AI agents
Home Page: https://docs.thousandbirds.ai
License: MIT License
Hey, the project looks very interesting. I tried to install node package on an M1 Mac but got the error:
npm ERR! response status 404 Not Found on https://github.com/thousandbirdsinc/chidori/releases/download/v0.1.21/chidori-v0.1.21-node-v108-darwin-arm64-unknown.tar.gz
Is it a known issue? Any plans to build a binary for ARM?
I get this error when I run the js example in the readme:
▶ node index.js
node:internal/modules/cjs/loader:1282
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: /home/mike/code/chidori-example/node_modules/@1kbirds/chidori/package_node/native/chidori.node: invalid ELF header
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1282:18)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Module.require (node:internal/modules/cjs/loader:1100:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object.<anonymous> (/home/mike/code/chidori-example/node_modules/@1kbirds/chidori/package_node/index.js:23:5)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12) {
code: 'ERR_DLOPEN_FAILED'
}
Happy to dig around if you prompt me with any details or hunches about this but initially it looks a bit intimidating.
A Docker-compose setup for local development will drastically simplify the process of getting the project up and running, especially with external data systems like Qdrant.
We have a Website Chatbot and we want to change the background color.
Is there a way to do this through the U.I. or via the code ?
Thanks
main, docker, non-docker - the same problem.
(30363a2) was my last chance to start rust example.
.../chidori/examples/rust/top-ai-launches-hn (30363a2) $ cargo check
Updating crates.io index
error: failed to select a version for `syn`.
... required by package `deno_ops v0.70.0`
... which satisfies dependency `deno_ops = "^0.70.0"` of package `deno_core v0.192.0`
... which satisfies dependency `deno_core = "^0.192.0"` of package `prompt-graph-exec v0.1.23`
... which satisfies dependency `prompt-graph-exec = "^0.1.0"` of package `chidori v0.1.26`
... which satisfies dependency `chidori = "^0.1.26"` of package `top-ai-launches-hn v0.1.0 (/workspaces/chidori/examples/rust/top-ai-launches-hn)`
versions that meet the requirements `=2.0.18` are: 2.0.18
all possible versions conflict with previously selected packages.
previously selected package `syn v2.0.31`
... which satisfies dependency `syn = "^2.0.31"` of package `zerocopy-derive v0.7.31`
... which satisfies dependency `zerocopy-derive = "=0.7.31"` of package `zerocopy v0.7.31`
... which satisfies dependency `zerocopy = "^0.7.0"` of package `ahash v0.8.4`
... which satisfies dependency `ahash = "^0.8.0"` of package `hashbrown v0.14.0`
... which satisfies dependency `hashbrown = "^0.14"` of package `hnsw_rs_thousand_birds v0.1.20`
... which satisfies dependency `hnsw_rs_thousand_birds = "^0.1.20"` of package `prompt-graph-exec v0.1.23`
... which satisfies dependency `prompt-graph-exec = "^0.1.0"` of package `chidori v0.1.26`
... which satisfies dependency `chidori = "^0.1.26"` of package `top-ai-launches-hn v0.1.0 (/workspaces/chidori/examples/rust/top-ai-launches-hn)`
failed to select a version for `syn` which could resolve this conflict
I'm attempting to execute the examples/rust/top-ai-launches-hn example you graciously shared. Following the "cargo run" step, here's the outcome:
Compiling top-ai-launches-hn v0.1.0 (/Users/xsa-osx/RustroverProjects/code-dagger)
error[E0432]: unresolved import `_chidori::create_change_value`
--> src/main.rs:13:16
|
13 | use _chidori::{create_change_value, NodeWillExecuteOnBranch};
| ^^^^^^^^^^^^^^^^^^^ no `create_change_value` in the root
warning: unused import: `std::env`
--> src/main.rs:2:5
|
2 | use std::env;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `std::net::ToSocketAddrs`
--> src/main.rs:3:5
|
3 | use std::net::ToSocketAddrs;
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: unused imports: `Message`, `SmtpTransport`
--> src/main.rs:6:14
|
6 | use lettre::{Message, SmtpTransport, Transport};
| ^^^^^^^ ^^^^^^^^^^^^^
warning: unused import: `lettre::transport::smtp::authentication::Credentials`
--> src/main.rs:7:5
|
7 | use lettre::transport::smtp::authentication::Credentials;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `lettre::transport::smtp::Error`
--> src/main.rs:8:5
|
8 | use lettre::transport::smtp::Error;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `lettre::transport::smtp::response::Response`
--> src/main.rs:9:5
|
9 | use lettre::transport::smtp::response::Response;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `serde_json::json`
--> src/main.rs:12:5
|
12 | use serde_json::json;
| ^^^^^^^^^^^^^^^^
warning: unused imports: `DenoCodeNodeCreateOpts`, `serialized_value_to_string`
--> src/main.rs:15:67
|
15 | ...dori, CustomNodeCreateOpts, DenoCodeNodeCreateOpts, GraphBuilder, Handler, PromptNodeCreateOpts, serialized_value_to_string};
| ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variable does not need to be mutable
--> src/main.rs:37:21
|
37 | let mut story: Story = client.get(&resource).send().await?.json().await?;
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
warning: unused import: `Transport`
--> src/main.rs:6:38
|
6 | use lettre::{Message, SmtpTransport, Transport};
| ^^^^^^^^^
For more information about this error, try `rustc --explain E0432`.
warning: `top-ai-launches-hn` (bin "top-ai-launches-hn") generated 10 warnings
error: could not compile `top-ai-launches-hn` (bin "top-ai-launches-hn") due to previous error; 10 warnings emitted
Where might I be making a mistake?
Appreciate your help!
I'm trying to run the HN example you kindly provided. After poetry install
, this is the result:
❯ python top-ai-launches-hn.py
Traceback (most recent call last):
File "[.....]/top-ai-launches-hn.py", line 5, in <module>
from chidori import Chidori, GraphBuilder
ImportError: cannot import name 'GraphBuilder' from 'chidori' ([...]/envs/chidori/lib/python3.10/site-packages/chidori/__init__.py)
What am I doing wrong?
Thanks!
Rust HN example gets stuck if its run with docker without setting the OPEN_AI_KEY.
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.