notsoocool / codecache

CodeCache is a dynamic web application designed to streamline the way developers manage and access code snippets. The platform provides a comprehensive library of code snippets, allowing users to save, organize, and retrieve useful code snippets for various programming languages and use cases.
https://codecache.tech
MIT License
18 stars 54 forks source link

Add An AI Based chatbot for creating new snippets using ai inside the website itself. #86

Open GunaVardhanaReddyT opened 1 month ago

GunaVardhanaReddyT commented 1 month ago

Adding an ai powered chat bot can improve the website's use case by allowing the developer to generate a new code snippet that is needed within the website.

github-actions[bot] commented 1 month ago

🎉 Welcome to CodeCache! 🎉

Thank you for opening your first issue! We're excited to have you contributing to the project.

Before you get started, please make sure to check out our contributing guidelines and coding standards to ensure that everything is aligned with the project's workflow. If you have any questions or need help along the way, don't hesitate to ask.

We appreciate your input and look forward to collaborating with you. 🚀

Happy coding!

notsoocool commented 1 month ago

Great idea, @GunaVardhanaReddyT ! Implementing an AI-powered chatbot to assist in creating new snippets sounds like a fantastic addition to the project. Go ahead, you can definitely work on this!

notsoocool commented 1 month ago

@GunaVardhanaReddyT its been a week without any update!

Gauravtb2253 commented 1 month ago

I would like to work on this

notsoocool commented 1 month ago

@Gauravtb2253 what i want is to have a chatbot where we can have different code snippets or code help, and if the code snippet and code help is good the chatbot can ask us to save it in our databse and it can push to SnippetRequest model.

Gauravtb2253 commented 1 month ago

so can we use gemini for model

notsoocool commented 1 month ago

so can we use gemini for model

Yes anything that suits you.

Gauravtb2253 commented 1 month ago

Actually sir I have got some other work so I wouldn't be able to work on this issue for some days If possible you can assign someone else Sorry for the inconvenience

notsoocool commented 1 month ago

sure @Gauravtb2253, thanks for updating.

ananyag309 commented 1 month ago

Hi, i would like to work on this. @notsoocool

STSonyThomas commented 1 month ago

Hey can I work on this?

notsoocool commented 1 month ago

Sure, @ananyag309 and @STSonyThomas, I’ll assign you both to this issue. There's no first-come, first-serve rule here, so I’ll review both of your PRs and consider them if they meet the quality standards.

STSonyThomas commented 1 month ago

Alr @ananyag309 why don't we do it together then? I'll do the backend and add you as a collaborator to my fork and we can share the PR credit. What say?

ananyag309 commented 1 month ago

@STSonyThomas okay cool

STSonyThomas commented 1 month ago

Hey @ananyag309 I have created a fork of the repo and added you to it as well. The backend is present under api/conversation along with a sample implementation front-end at src/(test)/testChat/pages.tsx

ananyag309 commented 1 month ago

@STSonyThomas I will look into it, if i would be able to add something valuable will let you know asap cuz i have an exam of DS tomorrow

STSonyThomas commented 1 month ago

Yeah that's cool.

notsoocool commented 1 month ago

@STSonyThomas @ananyag309 any update guys?

STSonyThomas commented 1 month ago

Hey yeah. The backend is done with. @ananyag309 is working on the front end

STSonyThomas commented 1 month ago

image Hey does this work?

STSonyThomas commented 1 month ago

It's mobile responsive as well. So if you're cool with that then I'll push it.

STSonyThomas commented 1 month ago

@notsoocool

ananyag309 commented 1 month ago

@STSonyThomas I think this is very cool.

STSonyThomas commented 1 month ago

Hey @ananyag309 I'm sorry for jumping right in. Since you mentioned that you had a DS exam, I thought you'd be busy of sorts. And also, thanks!

ananyag309 commented 1 month ago

@STSonyThomas I'm actually grateful. Do you think you can walk me through the backend part a little bit? I sometimes find it difficult to implement.

notsoocool commented 1 month ago

@STSonyThomas @ananyag309 its actually looking good, can you just add an option to save the snippets in our collections, if thats implemented i would gladly give you level3 tag, I mean its upto you, i will give you level3 anyways, but if you can just add that feature as well, it will be cheery on top.

STSonyThomas commented 1 month ago

In your collections as in to save the snippet to the snippet collection right?

STSonyThomas commented 1 month ago

Let me see. If Gemini supports tool calling in their base versions I'll implement it or else it might tough to pull that off. I'll make a PR by tonight regardless.