Skip to content

Commit b306bb2

Browse files
authored
Merge pull request #124 from jhehemann/feat/add-sentence-embedding
Add sentence embedding tool
2 parents 76e74e0 + a8a33d7 commit b306bb2

File tree

8 files changed

+1836
-568
lines changed

8 files changed

+1836
-568
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ You can create and mint your own AI Mech that handles requests for tasks that yo
277277
API_KEYS=[[openai, dummy_api_key],[<your_api_key_id>, <your_api_key>]]
278278
```
279279
280-
5. **Mint your agent service** in the [Autonolas Protocol](https://registry.olas.network/services/mint), and create a Mech for it in [Mech Hub](https://aimechs.autonolas.network/factory). This will allow you to set the `SAFE_CONTRACT_ADDRESS` and `AGENT_MECH_CONTRACT_ADDRESS` in the `.1env` file.
280+
5. **Mint your agent service** in the [Autonolas Protocol](https://registry.olas.network/ethereum/services/mint), and create a Mech for it in [Mech Hub](https://aimechs.autonolas.network/factory). This will allow you to set the `SAFE_CONTRACT_ADDRESS` and `AGENT_MECH_CONTRACT_ADDRESS` in the `.1env` file.
281281
282282
> **Warning**
283-
> AI Mechs run on the [Gnosis chain](https://www.gnosis.io/). You must ensure that your wallet is connected to the [Gnosis chain](https://www.gnosis.io/) before using the [Autonolas Protocol](https://protocol.autonolas.network/services/mint) and [Mech Hub](https://aimechs.autonolas.network/factory).
283+
> AI Mechs run on the [Gnosis chain](https://www.gnosis.io/). You must ensure that your wallet is connected to the [Gnosis chain](https://www.gnosis.io/) before using the [Autonolas Protocol](https://registry.olas.network/ethereum/services/mint) and [Mech Hub](https://aimechs.autonolas.network/factory).
284284
285285
Here is an example of the agent NFT metadata once you create the Mech:
286286
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# ------------------------------------------------------------------------------
3+
#
4+
# Copyright 2023-2024 Valory AG
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# ------------------------------------------------------------------------------
19+
20+
"""This module contains a tool for making binary predictions using sentence embeddings."""
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: prediction_sentence_embeddings
2+
author: jhehemann
3+
version: 0.1.0
4+
type: custom
5+
description: A tool for making binary predictions using sentence a URL article.
6+
license: Apache-2.0
7+
aea_version: '>=1.0.0, <2.0.0'
8+
fingerprint:
9+
__init__.py: bafybeicqdub7wb5n454snmgxymim63itq6st7j2whznnsz6aiyxwaaokbi
10+
prediction_sentence_embeddings.py: bafybeid7l5vy6utk2bwjj6syc62g4mvq5dnwl6qy4pavrecltujm453hk4
11+
fingerprint_ignore_patterns: []
12+
entry_point: prediction_sentence_embeddings.py
13+
callable: run
14+
dependencies:
15+
tqdm:
16+
version: ==4.56.0
17+
google-api-python-client:
18+
version: ==2.95.0
19+
googlesearch-python:
20+
version: ==1.2.3
21+
requests: {}
22+
pydantic:
23+
version: '>=1.9.0,<3'
24+
tiktoken:
25+
version: ==0.7.0
26+
openai:
27+
version: ==1.30.2
28+
docstring-parser:
29+
version: ==0.15
30+
numpy:
31+
version: '>=1.19.0'
32+
python-dateutil:
33+
version: ==2.8.2
34+
beautifulsoup4:
35+
version: ==4.12.2
36+
spacy:
37+
version: ==3.7.2
38+
anthropic:
39+
version: ==0.21.3

0 commit comments

Comments
 (0)