GithubHelp home page GithubHelp logo

thousandbirdsinc / chidori Goto Github PK

View Code? Open in Web Editor NEW
1.2K 19.0 47.0 40.06 MB

A reactive runtime for building durable AI agents

Home Page: https://docs.thousandbirds.ai

License: MIT License

Rust 55.28% JavaScript 1.06% Python 0.49% Shell 0.47% Nix 0.13% HTML 0.06% TypeScript 42.27% CSS 0.22% SCSS 0.03%
agents ai debugging framework llmops llms orchestration

chidori's People

Contributors

hackintoshrao avatar kvey avatar phlipphlops avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chidori's Issues

Error pulling binary on M1 Mac

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?

Error running example from readme

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.

Docker-compose setup

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.

CSS for Website Chatbot

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

Error: failed to select a version for `syn`.

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

error when running rust example without docker

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!

error while running python example

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!

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.