Skip to content
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

Add StarknetFoundry as a source #9

Open
fricoben opened this issue Oct 28, 2024 · 0 comments · May be fixed by #10
Open

Add StarknetFoundry as a source #9

fricoben opened this issue Oct 28, 2024 · 0 comments · May be fixed by #10
Assignees

Comments

@fricoben
Copy link
Contributor

Description

https://github.com/cairo-book/starknet-agent/blob/cc95544bd4cea8c3f064e24aad19ddc8e7bb590b/src/ingester/cairoBookIngester.ts#L1-L181

Tu crees une fonction ingestStarknetFoundry - probablement tu devrais clone le repo + faire un mdbook build pour recuperer tous les fichier mardown, une fois que tu as les fichiers markdown, tu fais pareil que pr le cairobook ingester.

et ensuite tu peux rajouter un focus mode specifique:

const focusModes = [
{
key: 'starknetEcosystemSearch',
title: 'All of Starknet',
description: 'Search in the entire Starknet Ecosystem',
icon: <Globe size={20} />,
},
{
key: 'cairoBookSearch',
title: 'Cairo Book',
description: 'Search in Cairo Book',
icon: <BookOpen size={20} />,
},
{
key: 'starknetDocsSearch',
title: 'Starknet Docs',
description: 'Search in Starknet Docs',
icon: <BookOpen size={20} />,
},
];
dans le front

dans le back:
add un searchHandler:

const searchHandlers: Record<string, SearchHandler> = {
cairoBookSearch: handleCairoBookSearch,
succintCairoBookSearch: handleSuccintCairoBookSearch,
starknetDocsSearch: handleStarknetDocsSearch,
starknetEcosystemSearch: handleStarknetEcosystemSearch,
};

puis ajouter un handleStarknetFoundrySearch https://github.com/cairo-book/starknet-agent/blob/cc95544bd4cea8c3f064e24aad19ddc8e7bb590b/src/agents/ragSearchAgents/cairoBookSearchAgent.ts#L103-L122

@fricoben fricoben self-assigned this Oct 28, 2024
@fricoben fricoben linked a pull request Oct 29, 2024 that will close this issue
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 a pull request may close this issue.

1 participant