Skip to content

Commit

Permalink
feat: Local model and README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Aug 14, 2024
1 parent fc57625 commit cbfca66
Show file tree
Hide file tree
Showing 3 changed files with 435 additions and 558 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 🇧🇪 ETHGlobal Brussels 2024 - Near AI Assistant
# 🇧🇪 ETHGlobal Brussels 2024 - [Near AI Assistant](https://ethglobal.com/showcase/near-ai-assistant-jmwgf)

This project aims to provide a one-stop AI chatbot to discover the [Near](https://near.org/) ecosystem 🚀
It was built during the ETHGlobal Brussels 2024 hackathon and won the Near prizes in the AI track.

It features an AI agent using an open-source model running on the [Aleph.im](https://aleph.im/) decentralized cloud, and a basic frontend to simplify interactions with it.

Expand All @@ -15,7 +16,7 @@ The agent has access to several functions to serve requests about Near as best a
- What are the different transaction actions on Near?
- Can I please have an ETHGlobal Brussels NFT sent to me at rezarah.testnet? Thanks
- I want to start using Near, can you send me some tokens on my testnet address random.testnet?
- I don't understand what this transaction is doing, can you help me? The transaction hash is `hash` and it was send by someone.testnet.
- I don't understand what this transaction is doing, can you help me? The transaction hash is `hash` and it was sent by someone.testnet.

## ⚙️ Installation

Expand Down Expand Up @@ -74,7 +75,7 @@ As a hackathon project built in solo, this is obviously not finished and can be

Other things I have used / fixed related to Near during this hackathon

- Made a fork of [py-near](https://github.com/pvolnov/py-near), based on [another fork](https://github.com/pinnace/py-near) that was solving some [dependencies issues](https://github.com/pvolnov/py-near/issues/18): https://github.com/RezaRahemtola/py-near\
- Made a fork of [py-near](https://github.com/pvolnov/py-near), based on [another fork](https://github.com/pinnace/py-near) that was solving some [dependencies issues](https://github.com/pvolnov/py-near/issues/18): [https://github.com/RezaRahemtola/py-near](https://github.com/RezaRahemtola/py-near)\
This allowed me to use the latest version of `py-near` without the dependency issues from the base project.
> 🧠 I found this `py-near` package really cool (great typing) and useful, but to be perfect a few things are missing imho:
> - Add it to the `near` organization and maintain it if possible, currently there is an [outdated API package there](https://github.com/near/near-api-py) linking to `py-near`. Having someone maintaining it would avoid this "fork of a fork of a replacement of `near-api-py`" that I had to made
Expand Down
3 changes: 2 additions & 1 deletion ai/config/general.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Model config
model:
name: "Nous Hermes 2 Pro" # Unused, for information purposes only
api_url: "https://curated.aleph.cloud/vm/84df52ac4466d121ef3bb409bb14f315de7be4ce600e8948d71df6485aa5bcc3/completion"
api_url: "http://localhost:8080/completion"
# api_url: "https://curated.aleph.cloud/vm/84df52ac4466d121ef3bb409bb14f315de7be4ce600e8948d71df6485aa5bcc3/completion"

max_prompt_tokens: 16384
max_completion_tokens: 700
Expand Down
Loading

0 comments on commit cbfca66

Please sign in to comment.