Comments (5)
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:
-
Update your frontend .env file to use your local IP: Change
NEXT_PUBLIC_BACKEND_URL=localhost:5050
toNEXT_PUBLIC_BACKEND_URL=http://192.168.1.15:5050
(replace192.168.1.15
with your local IP). Also, make sure to open port 5050 in your firewall. -
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
-
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 commanddos2unix 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:
- error message when asking question on localhost
- [Bug]: Can nor create any brain after installed the latest version
- Error occured while creating abrain
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
- error message when asking question on localhost
- [Bug]: Can nor create any brain after installed the latest version
- Error occured while creating abrain
- frontend/e2e/tests/createBrain.ts
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.
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:
-
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.
-
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 theOPENAI
token but also any other variables that might affect connectivity or feature availability, such as backend service URLs or feature flags. -
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 ofAddBrainModal
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. -
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.
-
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.
-
Ensure Correct Component Mounting: Since the
useEffect
hook is used to check the session and potentially redirect users, ensure that all components, especiallyAddBrainModal
, 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. -
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
- error message when asking question on localhost
- [Bug]: Cant create brains locally
- [Bug]: Can nor create any brain after installed the latest version
- frontend/app/search/page.tsx
- frontend/e2e/tests/createBrain.ts
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.
@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.
duplicate of 2322
from quivr.
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)
- [Bug]: While creating a new brain in localhost instance of Quivr, I am getting error HOT 16
- [Bug]: HOT 5
- [Bug]:
- [Bug]: error /app/node_modules/sharp: Command failed. HOT 2
- LocalAI support HOT 3
- [Bug]: GPT4 Brain code is not clean
- [Bug]: Unable to start backend-core HOT 8
- [Bug]: "error":"model 'llama2' not found, try pulling it first" HOT 6
- [Bug]: How to use the embedding model of ollama HOT 2
- [Bug]: runtime error: slice bounds out of range [1:0] HOT 1
- [Bug]: No model on ollama was used to answer HOT 18
- [Bug]: Not able to create brain on AWS Linux HOT 1
- [Epic]: Where does the user change the language? HOT 3
- How to set up the groq api? HOT 3
- [Bug]: it's still using OpenAI after set Ollama in .env file HOT 2
- [Feature]: azure open ai vs OpenAI key
- [Bug]: UnpickleableExceptionWrapper('postgrest.exceptions', 'APIError', ('{\'code\': \'42P01\', \'details\': None, \'hint\': None, \'message\': \'relation "public.syncs_active" does not exist\'}',), 'Error 42P01:\nMessage: relation "public.syncs_active" does not exist') HOT 3
- [Feature]: it should handle large pdf files and epub files
- [Bug]: Use Ollama model HOT 19
- [Feature]: email RAG HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quivr.