run-llama / sec-insights

A real world full-stack application using LlamaIndex
https://www.secinsights.ai/
MIT License
2.32k stars 631 forks source link

Unable to set the Back-end on my laptop #84

Open ShivangPandey2909 opened 8 months ago

ShivangPandey2909 commented 8 months ago

Hi, I have downloaded the repo but facing problem while setting up the back-end as per the instructions provided in the readme or the YouTube tutorial. Please help me for the same.

Thanks

siddarthreddygsr commented 8 months ago

Could you be more descriptive about what exactly didn't work?

ShivangPandey2909 commented 8 months ago

Hi Siddarth I am unable to set-up the backend on my system is it possible if we could connect so that you can help me for the same

siddarthreddygsr commented 8 months ago

I am not the original Author of the codebase. If you can describe what is the error you are running into then I can try to look into it and help you, if not me someone else would. People prefer well descriptive descriptions including

  1. What were the issues you ran into
  2. What exactly did you do
  3. how can we reproduce the error would help.
ShivangPandey2909 commented 8 months ago

Hi Siddarth,

What were the issues you ran into: While running make command in the backend, it showed an error that the command doesn't exist. We downloaded the equivalent version for make command in windows and try but it is giving a different error. Attaching the screenshot of the same. What exactly did you do: We downloaded the code from github into our local windows machine. We've extracted the folder and tried running the commands in readme file in backend and frontend folders. We haven't made use of Docker containers. We simply ran it on our local windows machine. What are the steps to follow in this way? how can we reproduce the error: By running the make run command.

We would like to run this setup in a local "Windows" machine. Is it possible to run it without Docker? If with Docker, could you help us with the basic steps so that we can proceed. We're new to this.

siddarthreddygsr commented 8 months ago
  1. Download docker on your machine and set it up properly by following this 👇 https://docs.docker.com/desktop/install/windows-install/#install-docker-desktop-on-windows
  2. navigate to the location where you downloaded sec-insights
  3. open terminal in that location
  4. navigate to the backend folder
  5. use the command docker-compose up

PS 1: Using docker should take care of the environment. PS 2: You forgot to attach the image.

ShivangPandey2909 commented 8 months ago

Hi Siddarth, As per the above mentioned steps shared by you, I tried running docker-compose up command, at the end I got an exception saying Database is not up to date and asked to run this command "poetry run alembic upgrade head", but when I tried running this, I got an error saying poetry is not recognized as a command though I installed poetry several times.

siddarthreddygsr commented 8 months ago

Follow this thread. Read through it thoroughly and don't blindly copy paste the commands. https://stackoverflow.com/questions/70003829/poetry-installed-but-poetry-command-not-found

Google well before asking for help.

ShivangPandey2909 commented 8 months ago

Hi Siddarth, Even after giving all the key values in .env file we are getting the error that the values are missing. Please refer the image for reference.

Code error
siddarthreddygsr commented 8 months ago

.env file

Can you check if you set the values in .env.development or .env

ShivangPandey2909 commented 8 months ago

Hi Siddarth, It is .env

siddarthreddygsr commented 8 months ago

Did u also run

set -a
source .env

?

Try running echo $S3_BUCKET_NAME to check if the values are set in the environment it shouldn't return a blank value but the value you set in your .env file.

siddarthreddygsr commented 7 months ago

Did it work ?

ShivangPandey2909 commented 7 months ago

Hi Siddarth, Even after running the set and source command we are getting the same error of value missing.

ShivangPandey2909 commented 7 months ago

Hi Siddarth, While running make run command we are getting the following errors. Could you please look into it and help me out.

Thanks image (1) image

ShivangPandey2909 commented 7 months ago

Hi Siddarth, While running make seed_local_db command we are getting the following errors. Could you please look into it and help me out.

Thanks

image (2)

kjRudani commented 5 months ago

Hello Shivang, I'm encountering the same error, did you found any workaround to solve this ?