Skip to content

WIP: Optiguides - vectorized knowledge base AI module#54

Merged
raiseerco merged 7 commits intomainfrom
op-community
Apr 14, 2025
Merged

WIP: Optiguides - vectorized knowledge base AI module#54
raiseerco merged 7 commits intomainfrom
op-community

Conversation

@raiseerco
Copy link
Collaborator

@raiseerco raiseerco commented Apr 9, 2025

WIP

This PR will enable the AI chat with OP documentation taken from the Community hub.

  • A Github Action will generate the .md files in https://github.com/raiseerco/ethernaut-app-kb/releases/tag/daily
  • Those .md files will feed the vectorized kb used by OpenAI api
  • The assistants API will use such vectorized kb to answer users' questions
  • The default model was upgraded to gpt-4o-mini in order to expand token limit up to 200k (It'll allow users to query in all languages)
  • Checks latest hash pushed to master in op-docs

@raiseerco raiseerco marked this pull request as draft April 9, 2025 02:52
@raiseerco raiseerco self-assigned this Apr 9, 2025
@coveralls
Copy link

coveralls commented Apr 12, 2025

Pull Request Test Coverage Report for Build 14434519024

Details

  • 57 of 172 (33.14%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on op-community at 68.562%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/ethernaut-ai/src/tasks/key.js 0 6 0.0%
packages/ethernaut-common/src/ui/output.js 1 8 12.5%
packages/ethernaut-cli/hardhat.config.js 36 44 81.82%
packages/ethernaut-ai/src/internal/assistants/HubsAssistant.js 3 14 21.43%
packages/ethernaut-ai/src/tasks/hubs.js 10 32 31.25%
packages/ethernaut-ai/src/internal/assistants/utils/build-hub-docs.js 7 68 10.29%
Totals Coverage Status
Change from base Build 14211119458: 68.6%
Covered Lines: 2668
Relevant Lines: 3593

💛 - Coveralls

@raiseerco raiseerco marked this pull request as ready for review April 12, 2025 04:35
@raiseerco raiseerco requested a review from luisvid April 12, 2025 04:35
Copy link
Collaborator

@luisvid luisvid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@raiseerco raiseerco merged commit 6afe361 into main Apr 14, 2025
70 of 72 checks passed
@raiseerco raiseerco deleted the op-community branch April 27, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants