- This application is based stackexchange API and LLM
- FrontEnd
- React + Typescript
- Backend
- Elixir + Pheonix
- LLM
- local setup Ollama
-
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
- I've installed Ollama using this (https://ollama.com/download/mac),
- Install this appliacation
- For setting up run this command, this
run commandwill install LLM model in your local if it doesn't exist - To interact with LLM model, this is local API endpoint used ( http://127.0.0.1:11434/api/generate )
- ollama run llama3.2 or - ollama pull llama3.2 <!-- This starts the LLM server locally, used for interacting with LLM--> - ollama serve
-
Related Answers
-
LLM relevant Answers
- User can fecth the question based on the
Advanced searchfrom the stackexchange the macthing question are picked and respective answers were shown. - Ollama was setup locally for the API interactions
- LLM will fine tune the results and gives relevant answers
- Didn't choose Accepted answers, since Other answers do add some relevant value
- User Id is harcoded since there is not authentication/ login involved
- User can fecth the question based on the
-
StackExchange API
-
Ollama GitHub




