-
Notifications
You must be signed in to change notification settings - Fork 34
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
Enhancements and New Feature Implementation: Fix rag and new tools #188
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
91906bd
fix bug when using source links
richardblythman 53cf2ab
add new reasoning tool
richardblythman 9e30529
fix bugs in rag tool prompts
richardblythman 9554ac1
extract only question from promt
moarshy a905c59
fix rag tool
moarshy 7c9c337
convert market resolve into a tool
moarshy 995c58a
housekeeping
moarshy 80835af
new tool using cot on single url
moarshy ed0dbfe
include temp/max_tokents
moarshy 29b8489
change default temp to 0
moarshy 3d4159c
fix hashes
moarshy 115befa
fix bug in cost counter for reasoning
richardblythman 68368b9
remove date extraction, shorten prompts
richardblythman 5759af2
remove text ==
moarshy 3d3b3a0
fix packages hash
moarshy 4e1d4e5
fix return typing
moarshy cf497ce
fix hashes
moarshy 5932fb4
fix function calls
moarshy 8d07406
Merge branch 'main' into chore/fix-rag
moarshy 51cb11a
fix hashes
moarshy 4acddf0
update models in cost counter
richardblythman d8fc057
chore: generators
0xArdi 1da99a3
fix: output type
jmoreira-valory 0a16ee1
chore: update claude interface
jmoreira-valory 328206a
chore: update resolve market reasoning interface
jmoreira-valory c204e91
chore: bump to [email protected]
0xArdi 905ed15
fix: move `prediction_request_reasoning` to dev packages
0xArdi f2b9d4e
chore: allow for gas params to be overritten
0xArdi e1bba5d
Merge branch 'chore/fix-rag' into chore/bump-0.14.10-1
0xArdi c7d8305
chore: generators
0xArdi ea10a14
chore: lock
0xArdi c1e6242
chore: generators
0xArdi 2d41e8b
chore: add deps to custom packages
0xArdi 8e34dd6
chore: add chromadb deps
0xArdi bc25913
Merge pull request #196 from valory-xyz/chore/bump-0.14.10-1
0xArdi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/napthaai/customs/prediction_request_reasoning/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# ------------------------------------------------------------------------------ | ||
# | ||
# Copyright 2024 Valory AG | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# ------------------------------------------------------------------------------ | ||
|
||
"""This module contains the resolve market reasoning tool.""" |
37 changes: 37 additions & 0 deletions
37
packages/napthaai/customs/prediction_request_reasoning/component.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: prediction_request_reasoning | ||
author: napthaai | ||
version: 0.1.0 | ||
type: custom | ||
description: A tool that reasons over extracted information. | ||
license: Apache-2.0 | ||
aea_version: '>=1.0.0, <2.0.0' | ||
fingerprint: | ||
__init__.py: bafybeib36ew6vbztldut5xayk5553rylrq7yv4cpqyhwc5ktvd4cx67vwu | ||
prediction_request_reasoning.py: bafybeien7m2b5ejuvxtrkl32ws5tkrek2jfcksxxf7tawo2hh4lhbmagee | ||
fingerprint_ignore_patterns: [] | ||
entry_point: prediction_request_reasoning.py | ||
callable: run | ||
dependencies: | ||
google-api-python-client: | ||
version: ==2.95.0 | ||
googlesearch-python: | ||
version: ==1.2.3 | ||
requests: {} | ||
pydantic: | ||
version: '>=1.9.0,<3' | ||
faiss-cpu: | ||
version: ==1.7.4 | ||
tiktoken: | ||
version: ==0.5.1 | ||
markdownify: | ||
version: ==0.11.6 | ||
openai: | ||
version: ==1.11.0 | ||
docstring-parser: | ||
version: ==0.15 | ||
readability-lxml: | ||
version: ==0.8.1 | ||
pypdf2: | ||
version: ==3.0.1 | ||
numpy: | ||
version: '>=1.19.0' |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running this tool, we get the following error: