Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stackoverflow + LLM

Quick Intro

  • This application is based stackexchange API and LLM

Tech stack used

  • FrontEnd
    • React + Typescript
  • Backend
    • Elixir + Pheonix
  • LLM
    • local setup Ollama

To Run the application

  • Backend

    • Navigate to backend folder from the current repo

      • Run the below command
        - cd back_end/handle_stackoverflow/
        - mix deps.get
        - mix ecto.create
        - mix ecto.migrate
      
        Lastly run this to start the application local server (runs in IEX console)
        - iex -S mix phx.server 
      
  • Frontend

    • Follow the below steps
     - cd front_end/mini_stackoverflow
     - npm i
    
     - npm run dev
    
  • LLM running locally

      - ollama run llama3.2
        or 
      - ollama pull llama3.2
    
      <!-- This starts the LLM server locally, used for interacting with LLM-->
      - ollama serve 
    

Images

  • Home Page alt text

  • Related Answers

    • alt text

    • alt text

  • LLM relevant Answers

    • alt text

    • Related to different question

      • alt text

    Assumptions made

    1. User can fecth the question based on the Advanced search from the stackexchange the macthing question are picked and respective answers were shown.
    2. Ollama was setup locally for the API interactions
    3. LLM will fine tune the results and gives relevant answers
    4. Didn't choose Accepted answers, since Other answers do add some relevant value
    5. User Id is harcoded since there is not authentication/ login involved

References

About

Fetch the question from the UI using Stack exchange API and re-order the answers using LLM model

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages