Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflows #51

Merged
merged 30 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
45c6582
add workflows
erhant Jun 13, 2024
3bb7a3f
added workflow test
erhant Jun 14, 2024
db25b55
read models from env, remove other workers
erhant Jun 17, 2024
fefcefc
rm old workers, change topics for task response
erhant Jun 19, 2024
d1570e3
use `s || e` instead of `h || s || e`
erhant Jun 22, 2024
a01a5ac
update startsh
selimseker Jun 24, 2024
c66f177
add = to -m|--model arg
selimseker Jun 24, 2024
8d0ee0b
Merge pull request #53 from firstbatchxyz/workflows-startsh-updates
selimseker Jun 24, 2024
412c6b2
update ollama & langchain, fix payload test
erhant Jun 24, 2024
c73c0fe
fix docs, fix small typo
erhant Jun 24, 2024
68b5cac
fix signature bug
erhant Jun 24, 2024
0971318
bump version
erhant Jun 24, 2024
0931c67
fix model & provider serialization
erhant Jun 24, 2024
066cbda
added service checks & prompt is now opt, remove redundants
erhant Jun 25, 2024
836897b
model fix, tmp workflow 1 parser
erhant Jun 26, 2024
72cf511
update to fixed workflows
erhant Jun 26, 2024
d10f157
send task_id within payload
erhant Jun 26, 2024
94a2f79
update ollama workflows
erhant Jun 26, 2024
9b20d06
try value or str for entry
erhant Jun 26, 2024
6d7cecb
bump workflows
erhant Jun 28, 2024
2683955
`cargo update` + fixed ecies
erhant Jun 30, 2024
d5d6b21
quick fixes
erhant Jul 4, 2024
7f86317
update to waku v0.30, minor fixes (#61)
erhant Jul 4, 2024
256ca67
update ollama workflows to accept host & port
erhant Jul 5, 2024
7c486df
limit 20 to 100
erhant Jul 5, 2024
36e622b
.env path fix
erhant Jul 5, 2024
b126022
more docs
erhant Jul 5, 2024
675c474
requirements
erhant Jul 5, 2024
cfd35df
more docs
erhant Jul 5, 2024
e745b04
typo fixes
erhant Jul 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
## WAKU ##
ETH_CLIENT_ADDRESS="https://sepolia.infura.io/v3/123aa110320f4aec179150fba1e1b1b1" # RPC URL, this is dummy; use your own!
ETH_TESTNET_KEY=<YOUR_SECRET_KEY> # Secret key of your compute node (32 byte, hexadecimal).
RLN_RELAY_CRED_PASSWORD="" # Password for the RLN relay credentials.
WAKU_URL="http://127.0.0.1:8645" # default
WAKU_EXTRA_ARGS="" # anything extra for Waku here
# RPC URL to connect with Ethereum.
RLN_RELAY_ETH_CLIENT_ADDRESS="https://sepolia.infura.io/v3/123aa110320f4aec179150fba1e1b1b1" # RPC URL, this is dummy; use your own!
# Password for the RLN relay credentials, used to encrypt `keystore.json`.
RLN_RELAY_CRED_PASSWORD="your-pwd-here"
# Secret key of your compute node (32 byte, hexadecimal, without 0x prefix).
ETH_TESTNET_KEY=<YOUR_SECRET_KEY>
# Waku's default url.
WAKU_URL="http://127.0.0.1:8645"
# Extra arguments, don't change this.
WAKU_EXTRA_ARGS="--discv5-bootstrap-node=enr:-LW4QMtKZ2-EZ-SDoccv1eMJ7Fe1rXOC7zlDJ5R1cOkwZFzOKf4PomKKn-e51ncNj_SV8YO3maBUW57tATYIRISd-EIBgmlkgnY0gmlwhNRi2gqKbXVsdGlhZGRyc4CCcnOTAAEIAAAAAQACAAMABAAFAAYAB4lzZWNwMjU2azGhAyKWFm1eSXFdUhA_JQ4mCWyzIWDfOmrlRUSQxypW0zhyg3RjcIJ2YIN1ZHCCIy2Fd2FrdTIP --staticnode=/ip4/18.157.160.219/tcp/30304/p2p/16Uiu2HAkzpGa371EyzwfSo62GLLFerkAyLdgFnFh6D2bwmXcnNWR"
WAKU_LOG_LEVEL="DEBUG" # INFO | DEBUG | ERROR

## DRIA ##
DKN_WALLET_SECRET_KEY=${ETH_TESTNET_KEY} # Dria uses the same key as Waku
DKN_ADMIN_PUBLIC_KEY=<DRIA_PUBLIC_KEY> # Public key of Dria (33-byte compressed, hexadecimal).
DKN_TASKS=synthesis # task1,task2,task3,... (comma separated, case-insensitive)
DKN_SYNTHESIS_MODEL_PROVIDER=Ollama # Ollama | OpenAI
DKN_SYNTHESIS_MODEL_NAME=phi3 # model name
DKN_LOG_LEVEL=info # maps to RUST_LOG
# Dria uses the same wallet as Waku.
DKN_WALLET_SECRET_KEY=${ETH_TESTNET_KEY}
# Public key of Dria Admin node (33-byte compressed, hexadecimal, without 0x prefix).
DKN_ADMIN_PUBLIC_KEY=0208ef5e65a9c656a6f92fb2c770d5d5e2ecffe02a6aade19207f75110be6ae658
# model1,model2,model3,... (comma separated, case-insensitive)
DKN_MODELS=phi3:3.8b
# info | debug | error | none,dkn_compute=debug
DKN_LOG_LEVEL=info

## Open AI (if used) ##
OPENAI_API_KEY=<YOUR_KEY>

## OLLAMA ##
OLLAMA_HOST="http://127.0.0.1" # default
OLLAMA_PORT="11434" # default
OLLAMA_KEEP_ALIVE="5m" # duration of model's life in memory

## SEARCH AGENT ##
AGENT_MODEL_PROVIDER="Ollama" # OpenAI | Claude | Ollama
AGENT_MODEL_NAME="phi3"
ANTHROPIC_API_KEY="api-key"
OPENAI_API_KEY="api-key"
SERPER_API_KEY="api-key"
BROWSERLESS_TOKEN="token"
## Ollama (if used) ##
OLLAMA_HOST="http://127.0.0.1"
OLLAMA_PORT=11434
Loading