Open nyck33 opened 9 months ago
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 42abe2d53940 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 24dc9b3ec868 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 71d17227d994 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 3008d6de3a31 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 24dc9b3ec868 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 71d17227d994 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 71d17227d994 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 3008d6de3a31 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it ecf699f83504 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 3fa1ffc7d382 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 575a8978a900 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 1047e8ce042c psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it bd35e78f43c5 psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 6f3409c8bdce psql -U postgres
OCI runtime exec failed: exec failed: unable to start container process: exec: "psql": executable file not found in $PATH: unknown
nyck33@nyck33-lenovo:~/Downloads$ docker exec -it 433e59fdad6d psql -U postgres
psql (15.5 (Ubuntu 15.5-1.pgdg20.04+1), server 15.1 (Ubuntu 15.1-1.pgdg20.04+1))
Type "help" for help.
postgres=> \dt
Did not find any relations.
postgres=>
what is wrong? docker containers are running fine but there is ntohing there. Shouldn't there be some dummy database, tables and data in there?
sql (15.5 (Ubuntu 15.5-1.pgdg20.04+1), server 15.1 (Ubuntu 15.1-1.pgdg20.04+1))
You are now connected to database "postgres" as user "postgres".
postgres=> \dt storage.*
List of relations
Schema | Name | Type | Owner
---------+------------+-------+------------------------
storage | buckets | table | supabase_storage_admin
storage | migrations | table | supabase_storage_admin
storage | objects | table | supabase_storage_admin
(3 rows)
postgres=> SELECT * FROM storage.buckets;
id | name | owner | created_at | updated_at | public | avif_autodetection | file_size_limit |
allowed_mime_types | owner_id
----+------+-------+------------+------------+--------+--------------------+-----------------+
--------------------+----------
(0 rows)
postgres=> SELECT * FROM storage.migrations;
id | name | hash
| executed_at
----+----------------------------------------------+------------------------------------------
+----------------------------
0 | create-migrations-table | e18db593bcde2aca2a408c4d1100f6abba2195df
| 2024-02-09 03:23:03.410595
1 | initialmigration | 6ab16121fbaa08bbd11b712d05f358f9b555d777
| 2024-02-09 03:23:03.418161
2 | storage-schema | 5c7968fd083fcea04050c1b7f6253c9771b99011
| 2024-02-09 03:23:03.42877
3 | pathtoken-column | 2cb1b0004b817b29d5b0a971af16bafeede4b70d
| 2024-02-09 03:23:03.451691
4 | add-migrations-rls | 427c5b63fe1c5937495d9c635c263ee7a5905058
| 2024-02-09 03:23:03.587734
5 | add-size-functions | 79e081a1455b63666c1294a440f8ad4b1e6a7f84
| 2024-02-09 03:23:03.611573
6 | change-column-name-in-get-size | f93f62afdf6613ee5e7e815b30d02dc990201044
| 2024-02-09 03:23:03.647155
7 | add-rls-to-buckets | e7e7f86adbc51049f341dfe8d30256c1abca17aa
| 2024-02-09 03:23:03.65256
8 | add-public-to-buckets | fd670db39ed65f9d08b01db09d6202503ca2bab3
| 2024-02-09 03:23:03.656095
9 | fix-search-function | 3a0af29f42e35a4d101c259ed955b67e1bee6825
| 2024-02-09 03:23:03.659932
10 | search-files-search-function | 68dc14822daad0ffac3746a502234f486182ef6e
| 2024-02-09 03:23:03.663831
11 | add-trigger-to-auto-update-updated_at-column | 7425bdb14366d1739fa8a18c83100636d74dcaa2
| 2024-02-09 03:23:03.66853
12 | add-automatic-avif-detection-flag | 8e92e1266eb29518b6a4c5313ab8f29dd0d08df9
| 2024-02-09 03:23:03.673022
13 | add-bucket-custom-limits | cce962054138135cd9a8c4bcd531598684b25e7d
| 2024-02-09 03:23:03.676271
14 | use-bytes-for-max-size | 941c41b346f9802b411f06f30e972ad4744dad27
| 2024-02-09 03:23:03.680022
15 | add-can-insert-object-function | 934146bc38ead475f4ef4b555c524ee5d66799e5
| 2024-02-09 03:23:03.732832
16 | add-version | 76debf38d3fd07dcfc747ca49096457d95b1221b
| 2024-02-09 03:23:03.738643
17 | drop-owner-foreign-key | f1cbb288f1b7a4c1eb8c38504b80ae2a0153d101
| 2024-02-09 03:23:03.742333
18 | add_owner_id_column_deprecate_owner | e7a511b379110b08e2f214be852c35414749fe66
| 2024-02-09 03:23:03.746892
19 | alter-default-value-objects-id | 02e5e22a78626187e00d173dc45f58fa66a4f043
| 2024-02-09 03:23:03.753184
(20 rows)
postgres=> SELECT * FROM storage.objects;
id | bucket_id | name | owner | created_at | updated_at | last_accessed_at | metadata | path_
tokens | version | owner_id
----+-----------+------+-------+------------+------------+------------------+----------+------
-------+---------+----------
(0 rows)
postgres=>
Can you update documentation with the schema of the databases for the local development docker containers?
33-fork/examples/providers$ cd ../..
(poetry-env) nyck33@nyck33-lenovo:~/projects/chatgpt-retrieval-plugin-nyck33-fork$ poetry run dev
Warning: 'dev' is an entry point defined in pyproject.toml, but it's not installed as a script. You may get improper `sys.argv[0]`.
The support to run uninstalled scripts will be removed in a future release.
Run `poetry install` to resolve and get rid of this message.
INFO: Will watch for changes in these directories: ['/home/nyck33/projects/chatgpt-retrieval-plugin-nyck33-fork']
INFO: Uvicorn running on http://localhost:3333 (Press CTRL+C to quit)
INFO: Started reloader process [240929] using WatchFiles
INFO: Started server process [240959]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 127.0.0.1:46646 - "GET / HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:46652 - "GET /docs HTTP/1.1" 200 OK
INFO: 127.0.0.1:46652 - "GET /openapi.json HTTP/1.1" 200 OK
2024-02-09 21:02:18.207 | INFO | services.date:to_unix_timestamp:23 - Invalid date format: string
2024-02-09 21:02:18.208 | INFO | services.date:to_unix_timestamp:23 - Invalid date format: string
2024-02-09 21:02:18.225 | ERROR | datastore.providers.pgvector_datastore:_query:151 - {'code': 'PGRST202', 'details': 'Searched for the function public.match_page_sections with parameters in_author, in_document_id, in_embedding, in_end_date, in_match_count, in_source, in_source_id, in_start_date or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.', 'hint': None, 'message': 'Could not find the function public.match_page_sections(in_author, in_document_id, in_embedding, in_end_date, in_match_count, in_source, in_source_id, in_start_date) in the schema cache'}
INFO: 127.0.0.1:56084 - "POST /query HTTP/1.1" 200 OK
2024-02-09 21:07:23.152 | ERROR | datastore.providers.pgvector_datastore:_query:151 - {'code': 'PGRST202', 'details': 'Searched for the function public.match_page_sections with parameters in_author, in_document_id, in_embedding, in_end_date, in_match_count, in_source, in_source_id, in_start_date or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.', 'hint': None, 'message': 'Could not find the function public.match_page_sections(in_author, in_document_id, in_embedding, in_end_date, in_match_count, in_source, in_source_id, in_start_date) in the schema cache'}
INFO: 127.0.0.1:41736 - "POST /query HTTP/1.1" 200 OK
2024-02-09 21:30:16.855 | ERROR | datastore.providers.pgvector_datastore:_query:151 - {'code': 'PGRST202', 'details': 'Searched for the function public.match_page_sections with parameters in_author, in_document_id, in_embedding, in_end_date, in_match_count, in_source, in_source_id, in_start_date or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.', 'hint': None, 'message': 'Could not find the function public.match_page_sections(in_author, in_document_id, in_embedding, in_end_date, in_match_count, in_source, in_source_id, in_start_date) in the schema cache'}
INFO: 127.0.0.1:42288 - "POST /query HTTP/1.1" 200 OK
Did you forget to include a function in the Docker images?
and
and
I'm lost at this point so going to try to get this going with a pg vector database I already have on supabase but those errors like
APIError {}
don't tell me anything at all. How can I get it to output something more informative?