Skip to content

Commit 88cd04e

Browse files
authored
Merge pull request #209 from NimbleBoxAI/fury
cf 1.7.0a2 release | moving towards wu-shi-dragon-grotto
2 parents 5367108 + 094a454 commit 88cd04e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2494
-4009
lines changed

.env.sample

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# chainfury server
2+
# ================
3+
# These are the environment variables that are used by the chainfury_server
4+
# For chainfury jump below to the chainfury section
5+
6+
# Required
7+
# --------
8+
9+
# URL to the database for chainfury server, uses sqlalchemy, so most things should work
10+
CFS_DATABASE="db_drivers://username:password@host:port/db_name"
11+
12+
# (once in a lifetime) secret string for creating the JWT secrets
13+
JWT_SECRET="secret"
14+
15+
# (once in a lifetime) password to store the user secrets
16+
CFS_SECRETS_PASSWORD="password"
17+
18+
# chainfury
19+
# =========
20+
# These are the environment variables that are used by the chainfury
21+
22+
# To store all the file and data in the chainfury server
23+
CF_FOLDER="~/cf"
24+
25+
# (client mode) the URL for the chainfury server
26+
CF_URL=""
27+
28+
# (client mode) the token for the chainfury server
29+
CF_TOKEN=""

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ langflow
142142
dunmp.rdb
143143
*.ipynb
144144
server/chainfury_server/stories/fury.json
145-
notebooks/*
145+
notebooks
146146
stories/fury.json
147147
workers/
148148
private.sh
@@ -151,4 +151,6 @@ api_docs/_static/
151151
cf
152152
demo/
153153
logs.py
154-
chunker/
154+
chunker/
155+
chainfury/chains/
156+
gosrc/

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "cf_internal"]
2-
path = cf_internal
3-
url = https://github.com/NimbleBoxAI/cf_internal.git

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ COPY --from=builder /app/dist/. /app/chainfury_server/static/.
3636

3737
WORKDIR /app/chainfury_server
3838
EXPOSE 8000
39-
CMD ["python3", "server.py", "--host", "0.0.0.0", "--port", "8000"]
39+
CMD ["python3", "-m", "chainfury_server", "--host", "0.0.0.0", "--port", "8000"]

Dockerfile.private

Lines changed: 0 additions & 45 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2023 NimbleBox.ai (Frello Techonology Private Limited)
189+
Copyright 2024 NimbleBox.ai (Frello Techonology Private Limited)
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@
77
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/NimbleBoxAI.svg?style=social&label=Follow%20%40NimbleBoxAI)](https://twitter.com/NimbleBoxAI)
88
[![](https://dcbadge.vercel.app/api/server/KhF38hrAJ2?compact=true&style=flat)](https://discord.com/invite/KhF38hrAJ2)
99

10-
🦋 Build complex chat apps using LLMs in 4 clicks ⚡️ [Try it out here](https://chainfury.nbox.ai/). Used in production by [chat.nbox.ai](https://chat.nbox.ai).
10+
```
11+
___ _ _ ___
12+
/ __| |_ __ _(_)_ _ | __| _ _ _ _ _
13+
| (__| ' \/ _` | | ' \ | _| || | '_| || |
14+
\___|_||_\__,_|_|_||_||_| \_,_|_| \_, |
15+
|__/
16+
e0 a4 b8 e0 a4 a4 e0 a5 8d e0 a4 af e0 a4
17+
ae e0 a5 87 e0 a4 b5 20 e0 a4 9c e0 a4 af
18+
e0 a4 a4 e0 a5 87
19+
```
20+
21+
🦋 The open source chaining engine behind [Tune Chat](https://chat.tune.app) and [Tune Studio](https://studio.tune.app).
1122

1223
# Read the [Docs](https://nimbleboxai.github.io/ChainFury/index.html)
1324

@@ -81,37 +92,25 @@ sh stories/build_and_copy.sh
8192
Once the static files are copied we can now proceed to install dependecies:
8293

8394
```bash
84-
pip install setuptools
8595
pip install -e . # editable install the chainfury
86-
cd server
87-
pip install -e . # editable install the chainfury_server
96+
pip install -e server/. # editable install the chainfury_server
97+
python3 -m chainfury_server
8898
```
8999

90-
To start you can now do:
100+
You can now visit [localhost:8000](http://localhost:8000/ui/) to see the GUI and sign in with the default username password `admin:admin`.
101+
102+
### Tests
103+
104+
There are a few test cases for super hard problems like `get_kv` which checks the `chainfury.base.get_value_by_keys` function.
91105

92106
```bash
93-
cd chainfury_server
94-
python3 server.py
107+
python3 -m tests -v
95108
```
96109

97-
You can now visit [localhost:8000](http://localhost:8000/ui/) to see the GUI.
98-
99110
# Contibutions
100111

101112
ChainFury is an open-source project used in production. We are open to contributions to the project in the form of features,
102113
infrastructure or documentation.
103114

104-
- Our [issues](https://github.com/NimbleBoxAI/ChainFury/issues) page is kept up to date with bugs, improvements, and feature requests.
105-
106-
- If you're looking for help with your code, hop onto [GitHub Discussions board](https://github.com/NimbleBoxAI/ChainFury/discussions) or
107-
[Discord](https://discord.com/invite/KhF38hrAJ2), so that more people can benefit from it.
108-
109-
- **Describing your issue:** Try to provide as many details as possible. What exactly goes wrong? How is it failing?
110-
Is there an error? "XY doesn't work" usually isn't that helpful for tracking down problems. Always remember to include
111-
the code you ran and if possible, extract only the relevant parts and don't just dump your entire script. This will make
112-
it easier for us to reproduce the error.
113-
114-
- **Sharing long blocks of code or logs:** If you need to include long code, logs or tracebacks, you can wrap them in
115-
`<details>` and `</details>`. This [collapses the content](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details)
116-
so it only becomes visible on click, making the issue easier to read and follow.
117-
115+
- If you're looking for help with your code, hop onto [Discord](https://discord.com/invite/KhF38hrAJ2), so that community can help you get to answer faster.
116+
- We would appreciate help towareds writing more tests, see what we have in [tests folder](./tests/)

api_docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
project = "ChainFury"
1515
copyright = "2023, NimbleBox Engineering"
1616
author = "NimbleBox Engineering"
17-
release = "1.6.4"
17+
release = "1.7.0a2"
1818

1919
# -- General configuration ---------------------------------------------------
2020
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

cf_internal

Lines changed: 0 additions & 1 deletion
This file was deleted.

chainfury/__init__.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright © 2023- Frello Technology Private Limited
2+
13
import os
24
import dotenv
35

@@ -12,8 +14,17 @@
1214
logger,
1315
CFEnv,
1416
)
15-
from chainfury.base import Var, Node, Secret, Chain, Model, Edge
16-
from chainfury.agent import (
17+
from chainfury.base import (
18+
Var,
19+
Node,
20+
Secret,
21+
Chain,
22+
Model,
23+
Edge,
24+
Tools,
25+
Action,
26+
)
27+
from chainfury.core import (
1728
model_registry,
1829
programatic_actions_registry,
1930
ai_actions_registry,
@@ -22,4 +33,14 @@
2233
Memory,
2334
)
2435
from chainfury.client import get_client
36+
from chainfury.types import (
37+
Message,
38+
Thread,
39+
ThreadsList,
40+
Dataset,
41+
human,
42+
system,
43+
assistant,
44+
)
45+
2546
from chainfury import components

0 commit comments

Comments
 (0)