Code Monkey home page Code Monkey logo

delphic's Introduction

Archive Notice: We recommend you check out OpenContracts for a much more modern version of this application that integrates that 0.10* branch of LlamaIndex with Django + pgvector to use Postgres as the vector store. This remains a great proof of concept for how to build a django-powered app with streaming responses from a large language model, but it is not being maintained.

I don't have the time to maintain it and it needs a number of upgrades to be production-ready. Let me know if you're interested in taking over maintenance.

Delphic

A simple framework to use LlamaIndex to build and deploy LLM agents that can be used to analyze and manipulate text data from documents.

Built with Cookiecutter Django Black code style

License: MIT

Getting Setup

Word of Caution / Note

The initial release of Delphic is based solely on OpenAI's API. We fully plan to support other large language models (LLMs), whether self-hosted or powered by third-party API. At the moment, however, as of April 2023, Open AI's API remains perhaps the most capable and easiest to deploy. Since this framework is based on LlamaIndex and is fully compatible with Langchain, it will be pretty easy to use other LLMs. At the moment, however, your text WILL be processed with OpenAI, even if you're self-hosting this tool. If OpenAI's terms of service present a problem for you, we leave that to you to resolve. WE ARE NOT RESPONSIBLE FOR ANY ISSUES ARRISING FROM YOUR USE OF THIS TOOL AND OPENAI API.

Getting Started Locally

Just Run the Application

The fastest way to get up and running is to clone this repo and then deploy the application locally.

You will need Docker and Docker Compose to follow these instructions. DigitalOcean, besides being an excellent cloud host, has some of the easiest-to-follow instructions on setting these up. Please check them out here or go to the Docker official instructions.

  1. First, clone the repo:
git clone
  1. Then, change into the directory:
cd delphic
  1. Don't forget to copy the sample env file to ./.envs/.local/ (you may need to be a super user / use sudo depending on your desired location)
mkdir -p ./.envs/.local/
cp -a ./docs/sample_envs/local/.frontend ./frontend
cp -a ./docs/sample_envs/local/.django ./.envs/.local
cp -a ./docs/sample_envs/local/.postgres ./.envs/.local
  1. And, next update your .django configuration (you'll probably want to edit .postgres as well to give your database user a unique password) to include your OPENAI API KEY

  2. Then, build the docker images:

sudo docker-compose --profile fullstack -f local.yml build
  1. Finally, to launch the application, type:
sudo docker-compose --profile fullstack -f local.yml up

Go to localhost:3000 to see the frontend.

I Want to Develop / Modify the Frontend

If you want to actively develop the frontend, we suggest you NOT use the --profile=fullstack flag as every change will require a full container rebuild. Instead, see the Development Environment instead of step #5 above,

Production Deploy

This assumes you want to make the application available to the internet at some kind of fully qualified domain like delphic.opensource.legal. In order to do this, you need to update a couple configurations.

TODO - insert documentation

Using the Application

Setup Users

In order to actually use the application (at the moment, we intend to make it possible to share certain models with unauthenticated users), you need a login. You can use either a superuser or non-superuser. In either case, someone needs to first create a superuser using the console:

Why set up a Django superuser? A Django superuser has all the permissions in the application and can manage all aspects of the system, including creating, modifying, and deleting users, collections, and other data. Setting up a superuser allows you to fully control and manage the application.

Warning / Disclaimer

**At the moment, any user who is logged in will have full permissions. We plan to implement the more precise, roles-based access control module we developed for OpenContracts, but, for now be aware that anyone with any type of login credentials can create and delete collections. Creating collections uses OpenAI credits / costs money

First, Setup a Django superuser:

  1. Run the following command to create a superuser:
sudo docker-compose -f local.yml run django python manage.py createsuperuser
  1. You will be prompted to provide a username, email address, and password for the superuser. Enter the required information.

Second (if desired), Setup Additional Users

Start your Delphic application locally following the deployment instructions.

  1. Visit the Django admin interface by navigating to http://localhost:8000/admin in your browser.
  2. Log in with the superuser credentials you created earlier.
  3. Click on the "Users" link in the “Users” section.
  4. Click on the “Add User +” button in the top right corner.
  5. Enter the required information for the new user, such as username and password. Click “Save” to create the user.
  6. To grant the new user additional permissions or make them a superuser, click on their username in the user list, scroll down to the “Permissions” section, and configure their permissions accordingly. Save your changes.

Creating and Querying a Collection

WARNING - If you're using OpenAI as your LLM engine, any Collection interaction will use API credits / cost money. If you're using your own OpenAI API key, you've also accepted their terms of service which may not be suitable for your use-case. Please do your own diligence.

To access the question-answering interface, bring up the fullstack, and go to http://localhost:3000

Delphic.Demo.mp4

Development Environment

If you want to contribute to Delphic or roll your own version, you'll want to ensure you setup the development environment.

Backend Setup

On the backend, you'll need to have a working python environment to run the pre-commit formatting checks. You can use your system python interpreter, but we recommend using pyenv and creating a virtual env based off of Python>=3.10.

Pre-Commit Setup

Then, in the root of your local repo, run these commands:

pip install -r ./requirements/local.txt
pre-commit install

Now, when you stage your commits, ou ar code formatting and style checks will run automatically.

Running Tests

We have a basic test suite in ./tests. You can run the tests by typing:

sudo docker-compose -f local.yml run django python manage.py test

Frontend Setup

On the frontend, we're using node v18.15.0. We assume you're using nvm. We don't have any frontend tests yet (sorry).

Setup and Launch Node Development Server

Cd into the frontend directory, install your frontend dependencies and start a development server (Note, we assume you have nvm installed. If you don't install it now):

cd frontend
nvm use
npm install yarn
yarn install

Typing yarn start will bring up your frontend development server at http://localhost:3000. You still need to launch the backend in order for it to work properly.

Run Backend Compose Stack Without fullstack profile flag

Launch the backend without the fullstack flag:

sudo docker-compose -f local.yml up

delphic's People

Contributors

dependabot[bot] avatar jsv4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

delphic's Issues

How to register?

There doesn't seem to be a place on the login page to register. I also can't figure out where in the filesystem to register. Please advise.

Invalid username or password

I've created a superuser following the instructions in the README (i.e., sudo docker-compose -f local.yml run django python manage.py createsuperuser), but every time I try to log in I get the following error: "Invalid username or password". I've checked that the superuser I created actually exists (when I try to create another with the same name it says that username is taken), and I've also created additional superusers. Regardless I keep getting the same error.

Add a new user in Getting Started or disable authentication?

Delphic looks like a cool system but I have not been able to login to it on my localhost.
The Getting Started instructions do not include step by step instructions on how to create a first user.
I've tried following "Setup Users" without success.
Could you add step-by-step instructions to get past the login screen?
Or, could you add an option when launching the docker compose to disable authentication?

Docker image fails to start

Hi, thanks for the project, it looks very interesting. Unfortunately I ran into some issues when trying to install it. I followed the instructions, but I am on a windows 10 computer. My googling did not help me solve this issue, I apologize if I'm doing something wrong with docker, I'm a docker novice.

I get the following error log when running the docker up command:

docker-compose --profile fullstack -f local.yml up
[+] Running 7/7
✔ Container chat_all_the_docs_local_redis Created 0.0s
✔ Container chat_all_the_docs_local_postgres Recreated 0.2s
✔ Container chat_all_the_docs_local_celeryworker Recreated 0.2s
✔ Container delphic_local_django Recreated 0.2s
✔ Container chat_all_the_docs_local_celerybeat Recreated 0.2s
✔ Container chat_all_the_docs_local_flower Recreated 0.2s
✔ Container delphic_local_frontend Recreated 0.1s
Attaching to chat_all_the_docs_local_celerybeat, chat_all_the_docs_local_celeryworker, chat_all_the_docs_local_flower, chat_all_the_docs_local_postgres, chat_all_the_docs_local_redis, delphic_local_django, delphic_local_frontend
chat_all_the_docs_local_postgres |
chat_all_the_docs_local_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
chat_all_the_docs_local_postgres |
chat_all_the_docs_local_postgres | 2023-04-22 19:41:13.462 UTC [1] LOG: starting PostgreSQL 14.7 (Debian 14.7-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
chat_all_the_docs_local_postgres | 2023-04-22 19:41:13.479 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
chat_all_the_docs_local_postgres | 2023-04-22 19:41:13.479 UTC [1] LOG: listening on IPv6 address "::", port 5432
chat_all_the_docs_local_postgres | 2023-04-22 19:41:13.483 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
chat_all_the_docs_local_postgres | 2023-04-22 19:41:13.493 UTC [27] LOG: database system was shut down at 2023-04-22 19:40:57 UTC
chat_all_the_docs_local_postgres | 2023-04-22 19:41:13.498 UTC [1] LOG: database system is ready to accept connections
chat_all_the_docs_local_redis | 1:C 22 Apr 2023 19:41:13.539 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
chat_all_the_docs_local_redis | 1:C 22 Apr 2023 19:41:13.539 # Redis version=6.2.12, bits=64, commit=00000000, modified=0, pid=1, just started
chat_all_the_docs_local_redis | 1:C 22 Apr 2023 19:41:13.539 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.540 * monotonic clock: POSIX clock_gettime
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.540 * Running mode=standalone, port=6379.
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.540 # Server initialized
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.540 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see jemalloc/jemalloc#1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.541 * Loading RDB produced by version 6.2.12
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.541 * RDB age 16 seconds
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.541 * RDB memory usage when created 0.77 Mb
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.541 # Done loading RDB, keys loaded: 0, keys expired: 0.
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.541 * DB loaded from disk: 0.000 seconds
chat_all_the_docs_local_redis | 1:M 22 Apr 2023 19:41:13.541 * Ready to accept connections
chat_all_the_docs_local_celerybeat | PostgreSQL is available
chat_all_the_docs_local_celeryworker | PostgreSQL is available
chat_all_the_docs_local_flower | PostgreSQL is available
chat_all_the_docs_local_celerybeat | [19:41:14] watchfiles v0.19.0 👀 path="/app" target="celery.main.main" (function) filter=DefaultFilter...
delphic_local_django | PostgreSQL is available
delphic_local_frontend | /bin/sh: /usr/share/nginx/html/env.sh: not found
chat_all_the_docs_local_flower | [19:41:15] watchfiles v0.19.0 👀 path="/app" target="celery.main.main" (function) filter=DefaultFilter...
delphic_local_frontend exited with code 127
chat_all_the_docs_local_celeryworker | Traceback (most recent call last):
chat_all_the_docs_local_celeryworker | File "/usr/local/bin/celery", line 8, in
chat_all_the_docs_local_celeryworker | sys.exit(main())
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/main.py", line 15, in main
chat_all_the_docs_local_celeryworker | sys.exit(_main())
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/bin/celery.py", line 217, in main
chat_all_the_docs_local_celeryworker | return celery(auto_envvar_prefix="CELERY")
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in call
chat_all_the_docs_local_celeryworker | return self.main(*args, **kwargs)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
chat_all_the_docs_local_celeryworker | rv = self.invoke(ctx)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1655, in invoke
chat_all_the_docs_local_celeryworker | sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 920, in make_context
chat_all_the_docs_local_celeryworker | self.parse_args(ctx, args)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1378, in parse_args
chat_all_the_docs_local_celeryworker | value, args = param.handle_parse_result(ctx, opts, args)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2360, in handle_parse_result
chat_all_the_docs_local_celeryworker | value = self.process_value(ctx, value)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2322, in process_value
chat_all_the_docs_local_celeryworker | value = self.callback(ctx, self, value)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/bin/worker.py", line 160, in
chat_all_the_docs_local_celeryworker | value: value or ctx.obj.app.conf.worker_state_db,
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 112, in getattr
chat_all_the_docs_local_celeryworker | return self[k]
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 392, in getitem
chat_all_the_docs_local_celeryworker | return getitem(k)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 250, in getitem
chat_all_the_docs_local_celeryworker | return mapping[_key]
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/collections/init.py", line 1102, in getitem
chat_all_the_docs_local_celeryworker | if key in self.data:
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/kombu/utils/objects.py", line 30, in get
chat_all_the_docs_local_celeryworker | return super().get(instance, owner)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/functools.py", line 981, in get
chat_all_the_docs_local_celeryworker | val = self.func(instance)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 138, in data
chat_all_the_docs_local_celeryworker | return self.callback()
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 967, in _finalize_pending_conf
chat_all_the_docs_local_celeryworker | conf = self._conf = self._load_config()
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 977, in _load_config
chat_all_the_docs_local_celeryworker | self.loader.config_from_object(self._config_source)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/loaders/base.py", line 128, in config_from_object
chat_all_the_docs_local_celeryworker | self._conf = force_mapping(obj)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 43, in force_mapping
chat_all_the_docs_local_celeryworker | if isinstance(m, (LazyObject, LazySettings)):
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 295, in getattribute
chat_all_the_docs_local_celeryworker | value = super().getattribute(name)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 266, in inner
chat_all_the_docs_local_celeryworker | self._setup()
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 79, in _setup
chat_all_the_docs_local_celeryworker | self._wrapped = Settings(settings_module)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 190, in init
chat_all_the_docs_local_celeryworker | mod = importlib.import_module(self.SETTINGS_MODULE)
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
chat_all_the_docs_local_celeryworker | return _bootstrap._gcd_import(name[level:], package, level)
chat_all_the_docs_local_celeryworker | File "", line 1050, in _gcd_import
chat_all_the_docs_local_celeryworker | File "", line 1027, in _find_and_load
chat_all_the_docs_local_celeryworker | File "", line 1006, in _find_and_load_unlocked
chat_all_the_docs_local_celeryworker | File "", line 688, in _load_unlocked
chat_all_the_docs_local_celeryworker | File "", line 883, in exec_module
chat_all_the_docs_local_celeryworker | File "", line 241, in _call_with_frames_removed
chat_all_the_docs_local_celeryworker | File "/app/config/settings/local.py", line 1, in
chat_all_the_docs_local_celeryworker | from .base import * # noqa
chat_all_the_docs_local_celeryworker | File "/app/config/settings/base.py", line 43, in
chat_all_the_docs_local_celeryworker | DATABASES = {"default": env.db("DATABASE_URL")}
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 294, in db_url
chat_all_the_docs_local_celeryworker | return self.db_url_config(
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 552, in db_url_config
chat_all_the_docs_local_celeryworker | port = url.port
chat_all_the_docs_local_celeryworker | File "/usr/local/lib/python3.10/urllib/parse.py", line 177, in port
chat_all_the_docs_local_celeryworker | raise ValueError(f"Port could not be cast to integer value as {port!r}")
chat_all_the_docs_local_celeryworker | ValueError: Port could not be cast to integer value as '7Ff9A5JvzgJ9'
delphic_local_django | Traceback (most recent call last):
delphic_local_django | File "/app/manage.py", line 31, in
delphic_local_django | execute_from_command_line(sys.argv)
delphic_local_django | File "/usr/local/lib/python3.10/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
delphic_local_django | utility.execute()
delphic_local_django | File "/usr/local/lib/python3.10/site-packages/django/core/management/init.py", line 386, in execute
delphic_local_django | settings.INSTALLED_APPS
delphic_local_django | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 92, in getattr
delphic_local_django | self._setup(name)
delphic_local_django | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 79, in _setup
delphic_local_django | self._wrapped = Settings(settings_module)
delphic_local_django | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 190, in init
delphic_local_django | mod = importlib.import_module(self.SETTINGS_MODULE)
delphic_local_django | File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
delphic_local_django | return _bootstrap._gcd_import(name[level:], package, level)
delphic_local_django | File "", line 1050, in _gcd_import
delphic_local_django | File "", line 1027, in _find_and_load
delphic_local_django | File "", line 1006, in _find_and_load_unlocked
delphic_local_django | File "", line 688, in _load_unlocked
delphic_local_django | File "", line 883, in exec_module
delphic_local_django | File "", line 241, in _call_with_frames_removed
delphic_local_django | File "/app/config/settings/local.py", line 1, in
delphic_local_django | from .base import * # noqa
delphic_local_django | File "/app/config/settings/base.py", line 43, in
delphic_local_django | DATABASES = {"default": env.db("DATABASE_URL")}
delphic_local_django | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 294, in db_url
delphic_local_django | return self.db_url_config(
delphic_local_django | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 552, in db_url_config
delphic_local_django | port = url.port
delphic_local_django | File "/usr/local/lib/python3.10/urllib/parse.py", line 177, in port
delphic_local_django | raise ValueError(f"Port could not be cast to integer value as {port!r}")
delphic_local_django | ValueError: Port could not be cast to integer value as '7Ff9A5JvzgJ9'
chat_all_the_docs_local_celeryworker exited with code 1
chat_all_the_docs_local_celerybeat | Process SpawnProcess-1:
chat_all_the_docs_local_celerybeat | Traceback (most recent call last):
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/watchfiles/run.py", line 394, in set_tty
chat_all_the_docs_local_celerybeat | with open(tty_path) as tty: # pragma: no cover
chat_all_the_docs_local_celerybeat | OSError: [Errno 6] No such device or address: '/dev/tty'
chat_all_the_docs_local_celerybeat |
chat_all_the_docs_local_celerybeat | During handling of the above exception, another exception occurred:
chat_all_the_docs_local_celerybeat |
chat_all_the_docs_local_celerybeat | Traceback (most recent call last):
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
chat_all_the_docs_local_celerybeat | self.run()
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/multiprocessing/process.py", line 108, in run
chat_all_the_docs_local_celerybeat | self._target(*self._args, **self._kwargs)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/watchfiles/run.py", line 354, in run_function
chat_all_the_docs_local_celerybeat | func(*args, **kwargs)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/main.py", line 15, in main
chat_all_the_docs_local_celerybeat | sys.exit(_main())
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/bin/celery.py", line 217, in main
chat_all_the_docs_local_celerybeat | return celery(auto_envvar_prefix="CELERY")
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in call
chat_all_the_docs_local_celerybeat | return self.main(*args, **kwargs)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
chat_all_the_docs_local_celerybeat | rv = self.invoke(ctx)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1655, in invoke
chat_all_the_docs_local_celerybeat | sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 920, in make_context
chat_all_the_docs_local_celerybeat | self.parse_args(ctx, args)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1378, in parse_args
chat_all_the_docs_local_celerybeat | value, args = param.handle_parse_result(ctx, opts, args)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2360, in handle_parse_result
chat_all_the_docs_local_celerybeat | value = self.process_value(ctx, value)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2322, in process_value
chat_all_the_docs_local_celerybeat | value = self.callback(ctx, self, value)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/bin/beat.py", line 23, in
chat_all_the_docs_local_celerybeat | callback=lambda ctx, _, value: value or ctx.obj.app.conf.beat_schedule_filename,
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 112, in getattr
chat_all_the_docs_local_celerybeat | return self[k]
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 392, in getitem
chat_all_the_docs_local_celerybeat | return getitem(k)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 250, in getitem
chat_all_the_docs_local_celerybeat | return mapping[_key]
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/collections/init.py", line 1102, in getitem
chat_all_the_docs_local_celerybeat | if key in self.data:
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/kombu/utils/objects.py", line 30, in get
chat_all_the_docs_local_celerybeat | return super().get(instance, owner)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/functools.py", line 981, in get
chat_all_the_docs_local_celerybeat | val = self.func(instance)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 138, in data
chat_all_the_docs_local_celerybeat | return self.callback()
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 967, in _finalize_pending_conf
chat_all_the_docs_local_celerybeat | conf = self._conf = self._load_config()
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 977, in _load_config
chat_all_the_docs_local_celerybeat | self.loader.config_from_object(self._config_source)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/loaders/base.py", line 128, in config_from_object
chat_all_the_docs_local_celerybeat | self._conf = force_mapping(obj)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 43, in force_mapping
chat_all_the_docs_local_celerybeat | if isinstance(m, (LazyObject, LazySettings)):
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 295, in getattribute
chat_all_the_docs_local_celerybeat | value = super().getattribute(name)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 266, in inner
chat_all_the_docs_local_celerybeat | self._setup()
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 79, in _setup
chat_all_the_docs_local_celerybeat | self._wrapped = Settings(settings_module)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 190, in init
chat_all_the_docs_local_celerybeat | mod = importlib.import_module(self.SETTINGS_MODULE)
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
chat_all_the_docs_local_celerybeat | return _bootstrap._gcd_import(name[level:], package, level)
chat_all_the_docs_local_celerybeat | File "", line 1050, in _gcd_import
chat_all_the_docs_local_celerybeat | File "", line 1027, in _find_and_load
chat_all_the_docs_local_celerybeat | File "", line 1006, in _find_and_load_unlocked
chat_all_the_docs_local_celerybeat | File "", line 688, in _load_unlocked
chat_all_the_docs_local_celerybeat | File "", line 883, in exec_module
chat_all_the_docs_local_celerybeat | File "", line 241, in _call_with_frames_removed
chat_all_the_docs_local_celerybeat | File "/app/config/settings/local.py", line 1, in
chat_all_the_docs_local_celerybeat | from .base import * # noqa
chat_all_the_docs_local_celerybeat | File "/app/config/settings/base.py", line 43, in
chat_all_the_docs_local_celerybeat | DATABASES = {"default": env.db("DATABASE_URL")}
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 294, in db_url
chat_all_the_docs_local_celerybeat | return self.db_url_config(
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 552, in db_url_config
chat_all_the_docs_local_celerybeat | port = url.port
chat_all_the_docs_local_celerybeat | File "/usr/local/lib/python3.10/urllib/parse.py", line 177, in port
chat_all_the_docs_local_celerybeat | raise ValueError(f"Port could not be cast to integer value as {port!r}")
chat_all_the_docs_local_celerybeat | ValueError: Port could not be cast to integer value as '7Ff9A5JvzgJ9'
delphic_local_django exited with code 1
chat_all_the_docs_local_flower | [E 230422 19:41:17 signal:280] Signal handler <bound method DjangoFixup.on_import_modules of <celery.fixups.django.DjangoFixup object at 0x7f544c176b60>> raised: ValueError("Port could not be cast to integer value as '7Ff9A5JvzgJ9'")
chat_all_the_docs_local_flower | Traceback (most recent call last):
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/dispatch/signal.py", line 276, in send
chat_all_the_docs_local_flower | response = receiver(signal=self, sender=sender, **named)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/fixups/django.py", line 82, in on_import_modules
chat_all_the_docs_local_flower | self.worker_fixup.validate_models()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/fixups/django.py", line 73, in worker_fixup
chat_all_the_docs_local_flower | self._worker_fixup = DjangoWorkerFixup(self.app)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/fixups/django.py", line 104, in init
chat_all_the_docs_local_flower | self.db_reuse_max = self.app.conf.get('CELERY_DB_REUSE_MAX', None)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 415, in get
chat_all_the_docs_local_flower | return self[key]
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 392, in getitem
chat_all_the_docs_local_flower | return getitem(k)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 250, in getitem
chat_all_the_docs_local_flower | return mapping[_key]
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/collections/init.py", line 1102, in getitem
chat_all_the_docs_local_flower | if key in self.data:
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/kombu/utils/objects.py", line 30, in get
chat_all_the_docs_local_flower | return super().get(instance, owner)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/functools.py", line 981, in get
chat_all_the_docs_local_flower | val = self.func(instance)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 138, in data
chat_all_the_docs_local_flower | return self.callback()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 967, in _finalize_pending_conf
chat_all_the_docs_local_flower | conf = self._conf = self._load_config()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 977, in _load_config
chat_all_the_docs_local_flower | self.loader.config_from_object(self._config_source)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/loaders/base.py", line 128, in config_from_object
chat_all_the_docs_local_flower | self._conf = force_mapping(obj)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 43, in force_mapping
chat_all_the_docs_local_flower | if isinstance(m, (LazyObject, LazySettings)):
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 295, in getattribute
chat_all_the_docs_local_flower | value = super().getattribute(name)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 266, in inner
chat_all_the_docs_local_flower | self._setup()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 79, in _setup
chat_all_the_docs_local_flower | self._wrapped = Settings(settings_module)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 190, in init
chat_all_the_docs_local_flower | mod = importlib.import_module(self.SETTINGS_MODULE)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
chat_all_the_docs_local_flower | return _bootstrap._gcd_import(name[level:], package, level)
chat_all_the_docs_local_flower | File "", line 1050, in _gcd_import
chat_all_the_docs_local_flower | File "", line 1027, in _find_and_load
chat_all_the_docs_local_flower | File "", line 1006, in _find_and_load_unlocked
chat_all_the_docs_local_flower | File "", line 688, in _load_unlocked
chat_all_the_docs_local_flower | File "", line 883, in exec_module
chat_all_the_docs_local_flower | File "", line 241, in _call_with_frames_removed
chat_all_the_docs_local_flower | File "/app/config/settings/local.py", line 1, in
chat_all_the_docs_local_flower | from .base import * # noqa
chat_all_the_docs_local_flower | File "/app/config/settings/base.py", line 43, in
chat_all_the_docs_local_flower | DATABASES = {"default": env.db("DATABASE_URL")}
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 294, in db_url
chat_all_the_docs_local_flower | return self.db_url_config(
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 552, in db_url_config
chat_all_the_docs_local_flower | port = url.port
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/urllib/parse.py", line 177, in port
chat_all_the_docs_local_flower | raise ValueError(f"Port could not be cast to integer value as {port!r}")
chat_all_the_docs_local_flower | ValueError: Port could not be cast to integer value as '7Ff9A5JvzgJ9'
chat_all_the_docs_local_flower | [E 230422 19:41:17 signal:280] Signal handler <promise@0x7f544c09c160 --> <bound method Celery._autodiscover_tasks of <Celery delphic at 0x7f544c176950>>> raised: ValueError("Port could not be cast to integer value as '7Ff9A5JvzgJ9'")
chat_all_the_docs_local_flower | Traceback (most recent call last):
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/dispatch/signal.py", line 276, in send
chat_all_the_docs_local_flower | response = receiver(signal=self, sender=sender, **named)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/vine/promises.py", line 160, in call
chat_all_the_docs_local_flower | return self.throw()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/vine/promises.py", line 157, in call
chat_all_the_docs_local_flower | retval = fun(*final_args, **final_kwargs)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 689, in _autodiscover_tasks
chat_all_the_docs_local_flower | return self._autodiscover_tasks_from_fixups(related_name)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 698, in _autodiscover_tasks_from_fixups
chat_all_the_docs_local_flower | return self._autodiscover_tasks_from_names([
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 701, in
chat_all_the_docs_local_flower | for pkg in fixup.autodiscover_tasks()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/fixups/django.py", line 92, in autodiscover_tasks
chat_all_the_docs_local_flower | return [config.name for config in apps.get_app_configs()]
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/apps/registry.py", line 147, in get_app_configs
chat_all_the_docs_local_flower | self.check_apps_ready()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/apps/registry.py", line 137, in check_apps_ready
chat_all_the_docs_local_flower | settings.INSTALLED_APPS
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 92, in getattr
chat_all_the_docs_local_flower | self._setup(name)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 79, in _setup
chat_all_the_docs_local_flower | self._wrapped = Settings(settings_module)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 190, in init
chat_all_the_docs_local_flower | mod = importlib.import_module(self.SETTINGS_MODULE)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
chat_all_the_docs_local_flower | return _bootstrap._gcd_import(name[level:], package, level)
chat_all_the_docs_local_flower | File "", line 1050, in _gcd_import
chat_all_the_docs_local_flower | File "", line 1027, in _find_and_load
chat_all_the_docs_local_flower | File "", line 1006, in _find_and_load_unlocked
chat_all_the_docs_local_flower | File "", line 688, in _load_unlocked
chat_all_the_docs_local_flower | File "", line 883, in exec_module
chat_all_the_docs_local_flower | File "", line 241, in _call_with_frames_removed
chat_all_the_docs_local_flower | File "/app/config/settings/local.py", line 1, in
chat_all_the_docs_local_flower | from .base import * # noqa
chat_all_the_docs_local_flower | File "/app/config/settings/base.py", line 43, in
chat_all_the_docs_local_flower | DATABASES = {"default": env.db("DATABASE_URL")}
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 294, in db_url
chat_all_the_docs_local_flower | return self.db_url_config(
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 552, in db_url_config
chat_all_the_docs_local_flower | port = url.port
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/urllib/parse.py", line 177, in port
chat_all_the_docs_local_flower | raise ValueError(f"Port could not be cast to integer value as {port!r}")
chat_all_the_docs_local_flower | ValueError: Port could not be cast to integer value as '7Ff9A5JvzgJ9'
chat_all_the_docs_local_flower | Process SpawnProcess-1:
chat_all_the_docs_local_flower | Traceback (most recent call last):
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/watchfiles/run.py", line 394, in set_tty
chat_all_the_docs_local_flower | with open(tty_path) as tty: # pragma: no cover
chat_all_the_docs_local_flower | OSError: [Errno 6] No such device or address: '/dev/tty'
chat_all_the_docs_local_flower |
chat_all_the_docs_local_flower | During handling of the above exception, another exception occurred:
chat_all_the_docs_local_flower |
chat_all_the_docs_local_flower | Traceback (most recent call last):
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
chat_all_the_docs_local_flower | self.run()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/multiprocessing/process.py", line 108, in run
chat_all_the_docs_local_flower | self._target(*self._args, **self._kwargs)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/watchfiles/run.py", line 354, in run_function
chat_all_the_docs_local_flower | func(*args, **kwargs)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/main.py", line 15, in main
chat_all_the_docs_local_flower | sys.exit(_main())
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/bin/celery.py", line 217, in main
chat_all_the_docs_local_flower | return celery(auto_envvar_prefix="CELERY")
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in call
chat_all_the_docs_local_flower | return self.main(*args, **kwargs)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
chat_all_the_docs_local_flower | rv = self.invoke(ctx)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
chat_all_the_docs_local_flower | return _process_result(sub_ctx.command.invoke(sub_ctx))
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
chat_all_the_docs_local_flower | return ctx.invoke(self.callback, **ctx.params)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
chat_all_the_docs_local_flower | return __callback(*args, **kwargs)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
chat_all_the_docs_local_flower | return f(get_current_context(), *args, **kwargs)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/flower/command.py", line 43, in flower
chat_all_the_docs_local_flower | flower = Flower(capp=app, options=options, **settings)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/flower/app.py", line 55, in init
chat_all_the_docs_local_flower | self.capp.loader.import_default_modules()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/loaders/base.py", line 105, in import_default_modules
chat_all_the_docs_local_flower | raise response
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/dispatch/signal.py", line 276, in send
chat_all_the_docs_local_flower | response = receiver(signal=self, sender=sender, **named)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/fixups/django.py", line 82, in on_import_modules
chat_all_the_docs_local_flower | self.worker_fixup.validate_models()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/fixups/django.py", line 73, in worker_fixup
chat_all_the_docs_local_flower | self._worker_fixup = DjangoWorkerFixup(self.app)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/fixups/django.py", line 104, in init
chat_all_the_docs_local_flower | self.db_reuse_max = self.app.conf.get('CELERY_DB_REUSE_MAX', None)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 415, in get
chat_all_the_docs_local_flower | return self[key]
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 392, in getitem
chat_all_the_docs_local_flower | return getitem(k)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 250, in getitem
chat_all_the_docs_local_flower | return mapping[_key]
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/collections/init.py", line 1102, in getitem
chat_all_the_docs_local_flower | if key in self.data:
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/kombu/utils/objects.py", line 30, in get
chat_all_the_docs_local_flower | return super().get(instance, owner)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/functools.py", line 981, in get
chat_all_the_docs_local_flower | val = self.func(instance)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 138, in data
chat_all_the_docs_local_flower | return self.callback()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 967, in _finalize_pending_conf
chat_all_the_docs_local_flower | conf = self._conf = self._load_config()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 977, in _load_config
chat_all_the_docs_local_flower | self.loader.config_from_object(self._config_source)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/loaders/base.py", line 128, in config_from_object
chat_all_the_docs_local_flower | self._conf = force_mapping(obj)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/celery/utils/collections.py", line 43, in force_mapping
chat_all_the_docs_local_flower | if isinstance(m, (LazyObject, LazySettings)):
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 295, in getattribute
chat_all_the_docs_local_flower | value = super().getattribute(name)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 266, in inner
chat_all_the_docs_local_flower | self._setup()
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 79, in _setup
chat_all_the_docs_local_flower | self._wrapped = Settings(settings_module)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 190, in init
chat_all_the_docs_local_flower | mod = importlib.import_module(self.SETTINGS_MODULE)
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
chat_all_the_docs_local_flower | return _bootstrap._gcd_import(name[level:], package, level)
chat_all_the_docs_local_flower | File "", line 1050, in _gcd_import
chat_all_the_docs_local_flower | File "", line 1027, in _find_and_load
chat_all_the_docs_local_flower | File "", line 1006, in _find_and_load_unlocked
chat_all_the_docs_local_flower | File "", line 688, in _load_unlocked
chat_all_the_docs_local_flower | File "", line 883, in exec_module
chat_all_the_docs_local_flower | File "", line 241, in _call_with_frames_removed
chat_all_the_docs_local_flower | File "/app/config/settings/local.py", line 1, in
chat_all_the_docs_local_flower | from .base import * # noqa
chat_all_the_docs_local_flower | File "/app/config/settings/base.py", line 43, in
chat_all_the_docs_local_flower | DATABASES = {"default": env.db("DATABASE_URL")}
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 294, in db_url
chat_all_the_docs_local_flower | return self.db_url_config(
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/site-packages/environ/environ.py", line 552, in db_url_config
chat_all_the_docs_local_flower | port = url.port
chat_all_the_docs_local_flower | File "/usr/local/lib/python3.10/urllib/parse.py", line 177, in port
chat_all_the_docs_local_flower | raise ValueError(f"Port could not be cast to integer value as {port!r}")
chat_all_the_docs_local_flower | ValueError: Port could not be cast to integer value as '7Ff9A5JvzgJ9'

I've placed the .drango and .postgress files in .envs/.local:
image
and input my openai api key (censored):
image

and the .frontend in /frontend
image

Thanks in advance for any help / suggestions

Error while creating new collection

Hello, thanks for this project ! I'm trying to use it but I ran into an error each time I try to add a collection

chat_all_the_docs_local_celeryworker  | [2023-04-23 16:21:38,185: ERROR/ForkPoolWorker-4] Error creating index for collection 6: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /emptycrown/loader-hub/main/loader_hub/library.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff8d6831f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
chat_all_the_docs_local_celeryworker  | [2023-04-23 16:21:38,189: INFO/ForkPoolWorker-4] Task delphic.tasks.index_tasks.create_index[c599e233-f976-4443-8b7a-3a823b204620] succeeded in 10.04079479596112s: False

Log Error: Where to get the logger.error() message?

The problem at hand is the inability to locate the location of the logger.error() message. I has been exploring for a while but has not been able to find it. Recently, I encountered some minor issues while importing a document and indexing (create_index task). Upon looking through the code, I saw the following line:

except Exception as e:
logger.error(f"Error creating index for collection {collection_id}: {e}")
collection.status = CollectionStatus.ERROR
collection.save()

However, they were unable to find where the error was being printed out. They are seeking assistance in resolving this issue.

Websocket Connection failure to Collection

Cannot open a WS connection to a newly uploaded Collection. On the frontend you see this:

Screen Shot 2023-07-16 at 2 33 57 PM

On the ASGI/WSGI dev server you see this:

Screen Shot 2023-07-16 at 2 36 03 PM

It looks like the API key being used by the WS frontend isn't available in the backend? Searching the docs gives no indication on what to do to set up an API key, aside from the OpenAI one.

Frontend username & password

I can't get where to set the username & password for the frontend:3000 login page. I have read all the manuals and failed to find it.

Error Creating Index For Collection

Unable to create any collections. Getting this error:

[2023-07-12 23:33:44,790: ERROR/ForkPoolWorker-8] Error creating index for collection 10: Extra data: line 1 column 4 (char 3)
I'd love to provide more information, but it's simply impossible to debug, as app uses threading and celery for this part of the code.

Error thrown from enpoints.py > create_index.

Trying to upload a single PDF file to a collection.

api key headaches

Hi
I managed to get it up and running fairly easily on a M1 Mac.
the only issue I'm having is that when I go to index a newly uploaded collection
it seems that there is an issue with API key authentication
I'm working with a known good OpenAI key
delphic_local_flower | INFO 2023-05-03 19:50:58,704 mixins 112 281472944230880 Connected to redis://redis:6379/0
delphic_local_django | API KEY authenticatE: yaddah
delphic_local_django | WARNING 2023-05-03 19:51:10,506 api_key 1yaddah INVALID KEY! - Error: APIKey matching query does not exist.
delphic_local_django | API KEY: None
delphic_local_django | INFO: 172.18.0.1:34644 - "GET /api/collections/available HTTP/1.1" 200 OK

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.