Giter Club home page Giter Club logo

Comments (5)

dosubot avatar dosubot commented on June 6, 2024 2

Based on the context provided, it seems like you've encountered a similar issue to what others have faced in the past. Here are some steps you can take to resolve this issue:

  1. Update your frontend .env file to use your local IP: Change NEXT_PUBLIC_BACKEND_URL=localhost:5050 to NEXT_PUBLIC_BACKEND_URL=http://192.168.1.15:5050 (replace 192.168.1.15 with your local IP). Also, make sure to open port 5050 in your firewall.

  2. Setup Quivr for the first time: If you're setting up Quivr for the first time, follow these steps:

    • Clone the Quivr repository
    • Copy env.example to .env for both the frontend and backend
    • Populate the Supabase details in both files
    • Run docker compose up in VSCode
    • Once the container is running, copy the two tables mentioned in the issue and run them as queries in Supabase
    • Refresh localhost:3000
    • You should see "Default brain" in the dropdown and be able to create a new brain
  3. Fix Windows characters in start.sh: If you're using Windows, the issue might be due to the file start.sh being saved to git with Windows characters. You can fix this by running the command dos2unix backend/core/scripts/start.sh and restarting the docker compose.

These solutions are based on similar issues that have been resolved in the past. You can refer to these issues for more details:

If none of the above suggestions fix the problem you are facing, further investigation and more detailed logs might be required to resolve the issue. Please provide any error messages or logs you encounter during the process, as they can be very helpful in diagnosing the problem.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

from quivr.

dosubot avatar dosubot commented on June 6, 2024 2

Based on the context provided, it seems like you've already taken several steps to troubleshoot the issue. However, the problem persists. Here are some additional steps you can take to resolve the issue:

  1. Check Backend Connectivity: Ensure that the backend service that provides the list of options for creating a new brain is running and accessible. The frontend code does not directly show how it fetches the options for creating a new brain, but it's likely that it relies on a backend service. Verify that the backend service is up and that the frontend can communicate with it over the expected port.

  2. Review Environment Variables: Double-check the .env file in the frontend to ensure that all necessary environment variables are correctly set. This includes not just the OPENAI token but also any other variables that might affect connectivity or feature availability, such as backend service URLs or feature flags.

  3. Inspect the AddBrainModal Component: The AddBrainModal component is likely responsible for handling the creation of a new brain, including displaying the options. Review the implementation of AddBrainModal to ensure it correctly fetches and displays the options for creating a new brain. Look for any API calls to fetch the options and check if those API calls are successful.

  4. Check Session Management: The code snippet includes a session check that redirects to a login page if no session is found. Ensure that the session is correctly established and maintained. If the session is not correctly handled, it might prevent certain features or data from being accessible, including the options for creating a new brain.

  5. Review Network and Console Logs: Use the browser's developer tools to inspect network requests and console logs for any errors or failed requests. This can provide clues if there are issues with fetching data or other errors that might prevent the options from being displayed.

  6. Ensure Correct Component Mounting: Since the useEffect hook is used to check the session and potentially redirect users, ensure that all components, especially AddBrainModal, are correctly mounted and rendered. If there's an issue with component lifecycle or rendering logic, it might prevent the modal from displaying the options correctly.

  7. Backend Configuration and Data: Verify that the backend is correctly configured to serve the necessary data for creating a new brain. This includes checking database connections, API endpoints, and any relevant configuration that might affect data availability.

If after following these steps the issue persists, it might be helpful to provide more detailed logs or error messages that you're encountering. This could help in identifying the root cause of the issue.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

from quivr.

pachadotdev avatar pachadotdev commented on June 6, 2024

@dosu-bot Hi! I implemented those and it didn't work. I used both the LAN local IP and WSL IP. The problem persists.

from quivr.

Croccodoyle avatar Croccodoyle commented on June 6, 2024

duplicate of 2322

from quivr.

pachadotdev avatar pachadotdev commented on June 6, 2024

duplicate of 2322

hi @Croccodoyle , I do not really understand why it is a duplicate, I just configured Quivr folowing the tutorial

from quivr.

Related Issues (20)

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.