File tree Expand file tree Collapse file tree 11 files changed +157
-6492
lines changed
ethernaut-optiforum/test/fixture-projects/basic-project
ethernaut-optimist/test/fixture-projects/basic-project Expand file tree Collapse file tree 11 files changed +157
-6492
lines changed Original file line number Diff line number Diff line change 1- ** /src /internal /assistants /docs /kb-files
1+ ** /src /internal /assistants /docs /kb-files /output /optimism /community-hub /chapters
2+ ** /src /internal /assistants /docs /kb-files /output /optimism /docs /chapters
Original file line number Diff line number Diff line change 1+ {}
Original file line number Diff line number Diff line change 1+ {}
Original file line number Diff line number Diff line change 1+ {}
Original file line number Diff line number Diff line change 1+ {}
Original file line number Diff line number Diff line change 11const fs = require ( 'fs' )
22const path = require ( 'path' )
33const openai = require ( '../../openai' )
4- const VECTOR_STORE_ID = 'OP_DOCS_6 '
4+ const VECTOR_STORE_ID = 'OP_DOCS_7 '
55
66const documentKeywords = require ( '../docs/kb-files/output/optimism/docs/keywords.json' )
77
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const fs = require('fs')
22const path = require ( 'path' )
33const openai = require ( '../../openai' )
44const USE_VECTOR_STORE = true // my flag to test both solutions
5- const VECTOR_STORE_ID = 'OP_6 '
5+ const VECTOR_STORE_ID = 'OP_HUB_7 '
66
77function extractKeywords ( query ) {
88 // TBD DEPRECATED
@@ -98,7 +98,11 @@ async function buildHubDocsWithVector(query) {
9898 } catch ( error ) {
9999 console . log ( 'No knowledge base found, please wait while building...' )
100100
101- const docsDir = path . join ( __dirname , '../docs/kb-files/output/chapters' )
101+ const docsDir = path . join (
102+ __dirname ,
103+ '../docs/kb-files/output/optimism/docs/chapters' ,
104+ )
105+
102106 const files = Object . keys ( documentKeywords )
103107 const batchSize = 5 // Upload files in batches to avoid rate limits
104108 const allFileIds = [ ]
Original file line number Diff line number Diff line change @@ -9,39 +9,6 @@ const EthernautCliError = require('ethernaut-common/src/error/error')
99
1010const TIMEOUT = 600000
1111
12- // OP Delegates -> https://vote.optimism.io/delegates
13- // OP Proposals -> https://vote.optimism.io/
14- // OP Forum -> https://gov.optimism.io/
15- // OP RPGF -> https://retrofunding.optimism.io/
16-
17- // Constitution -> https://gov.optimism.io/t/working-constitution-of-the-optimism-collective/55
18- // Code of Conduct -> https://gov.optimism.io/t/code-of-conduct/5751
19- // OPerating Manual -> https://github.com/ethereum-optimism/OPerating-manual/blob/main/manual.md
20-
21- // OP Stack Docs -> https://docs.optimism.io/stack/getting-started
22- // App Developer guide -> https://docs.optimism.io/builders/app-developers/overview
23- // Chain Operators guide -> https://docs.optimsssism.io/builders/chain-operators/self-hosted
24- // Node Operators guide -> https://docs.optimism.io/builders/node-operators/rollup-node
25- // Developer Tools -> https://docs.optimism.io/builders/tools/overview
26-
27- // Governance Docs -> https://community.optimism.io/
28- // Citizen House -> https://community.optimism.io/citizens-house/citizen-house-overview
29- // Token House -> https://community.optimism.io/token-house/token-house-overview
30- // Grants -> https://community.optimism.io/grant/grant-overview
31- // OP token -> https://community.optimism.io/op-token/op-token-overview
32-
33- // Governance Docs
34- // Citizen House
35- // Token House
36- // Grants
37- // OP token
38-
39- // OP Stack Docs
40- // App Developer guide
41- // Chain Operators guide
42- // Node Operators guide
43- // Developer Tools
44-
4512require ( '../scopes/ai' )
4613 . task ( 'dev-docs' , '🔴 Chat with the Optimism developer documentation' )
4714 . addPositionalParam (
Original file line number Diff line number Diff line change @@ -9,33 +9,6 @@ const EthernautCliError = require('ethernaut-common/src/error/error')
99
1010const TIMEOUT = 600000
1111
12- // OP Delegates -> https://vote.optimism.io/delegates
13- // OP Proposals -> https://vote.optimism.io/
14- // OP Forum -> https://gov.optimism.io/
15- // OP RPGF -> https://retrofunding.optimism.io/
16-
17- // Constitution -> https://gov.optimism.io/t/working-constitution-of-the-optimism-collective/55
18- // Code of Conduct -> https://gov.optimism.io/t/code-of-conduct/5751
19- // OPerating Manual -> https://github.com/ethereum-optimism/OPerating-manual/blob/main/manual.md
20-
21- // OP Stack Docs -> https://docs.optimism.io/stack/getting-started
22- // App Developer guide -> https://docs.optimism.io/builders/app-developers/overview
23- // Chain Operators guide -> https://docs.optimsssism.io/builders/chain-operators/self-hosted
24- // Node Operators guide -> https://docs.optimism.io/builders/node-operators/rollup-node
25- // Developer Tools -> https://docs.optimism.io/builders/tools/overview
26-
27- // Governance Docs -> https://community.optimism.io/
28- // Citizen House -> https://community.optimism.io/citizens-house/citizen-house-overview
29- // Token House -> https://community.optimism.io/token-house/token-house-overview
30- // Grants -> https://community.optimism.io/grant/grant-overview
31- // OP token -> https://community.optimism.io/op-token/op-token-overview
32-
33- // Governance Docs
34- // Citizen House
35- // Token House
36- // Grants
37- // OP token
38-
3912require ( '../scopes/ai' )
4013 . task ( 'hubs' , '🔴 Chat with the Optimism documentation' )
4114 . addPositionalParam (
You can’t perform that action at this time.
0 commit comments