Code Monkey home page Code Monkey logo

ai-ta-frontend's People

Contributors

dependabot[bot] avatar hanlily666 avatar kastanday avatar maxwell-lindsey avatar rohan-uiuc avatar sweep-ai[bot] avatar thihanmoekyaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ai-ta-frontend's Issues

Sweep: Implement a new fetchContexts() method, add UI button and logic to handle each implementation separately

Details

Features:

  1. On the ChatInput.tsx, remove the lightning bolt icon and functionality. Reformat the padding accordingly (to account for the button being missing). Add a new toggle switch in its place. The toggle switch should set a localStorage value of "UseMQRetrieval" to True.
  2. In Chat.tsx, read the value of the localStorage UseMQRetrieval variable. If it's true, then we want to fetchContexts() differently. Instead of fetchContexts() use the api fetchMQRContexts(). We haven't created that endpoint, but pretend it exists for now. It'll work exactly the same as fetchContexts(), but with a different backend algorithm. So use it the same as fetchContexts() whenever the localStorage variable is true.

Important files:

  • src/components/Chat/ChatInput.tsx
  • src/components/Chat/Chat.tsx
  • src/pages/api/getContexts.ts
Checklist
  • Modify src/components/Chat/ChatInput.tsx1f72b7f Edit
  • Running GitHub Actions for src/components/Chat/ChatInput.tsxEdit
  • Modify src/components/Chat/Chat.tsxfc4865e Edit
  • Running GitHub Actions for src/components/Chat/Chat.tsxEdit
  • Modify src/pages/api/getContexts.ts7b1aa3e Edit
  • Running GitHub Actions for src/pages/api/getContexts.tsEdit

Flowchart

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.