Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗃️ feat: General File Support for OpenAI, Azure, Custom, Anthropic and Google (RAG) #2143

Merged
merged 23 commits into from
Mar 20, 2024

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Mar 20, 2024

Summary

Implements general file support with a basic implementation of RAG using augmented prompt approach.

This commit will introduce the feature mainly for testing as it will not be part of the default setup for now.

Setup

- Use rag.yml compose file: docker compose -f rag.yml up
- More info: https://github.com/danny-avila/rag_api
- Uses PSQL/PGVector + FastAPI
- Uses OpenAI embeddings by default
- Can use HuggingFace Sentence transformers but not thoroughly tested
- Open to contributions
- Current setup relies on sharing volume storage, namely the uploads directory at project root.

- Set RAG_API_URL accordingly

  • In your .env file:
    • RAG_API_URL=http://localhost:8000
    • 🐳or if using Docker: RAG_API_URL=http://host.docker.internal:8000

Current Approach to RAG is subject to change for improvement.

Resend Files

image

  • Replaced resendImages with resendFiles and now defaults to true.
  • This allows for seamless querying of files that were previously attached
  • Can be disabled for targeted file queries
  • Current method will be improved by utilizing system messages and making query results stateful (currently ephemeral)

Other Changes

  • Fixes issue with markdown file handling
  • Prevents premature deletion of files when navigating away from conversation, and the file is either not new or embedded.
  • Improved UX for longer file uploads (due to bigger files being indexed)

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.
  • New documents have been locally validated with mkdocs

@danny-avila danny-avila changed the title 🗃️ feat: General File Support for OpenAI, Custom, Anthropic and Google (RAG) 🗃️ feat: General File Support for OpenAI, Azure, Custom, Anthropic and Google (RAG) Mar 20, 2024
@danny-avila danny-avila merged commit f7761df into main Mar 20, 2024
3 checks passed
@danny-avila danny-avila deleted the rag branch March 20, 2024 00:54
@delta-whiplash
Copy link

delta-whiplash commented Mar 20, 2024

Hello I tryed to setup it with hugingface but when I try to send a pdf file I have this issue :

image

I did the rag.yml setup with .env and db setup
I also changed my .env config on librechat to add the new variable (RAG_API_URL=http://rag-api-svc:8000)

I restarted everything to apply the changes

This error happend on two of my endpoints :

  • gemini pro 1.0 api
  • copilot-gpt4-service

in addition this is my logs:

2024-03-20T12:45:15.741922741+01:00 > LibreChat@0.6.10 backend
2024-03-20T12:45:15.741927852+01:00 > cross-env NODE_ENV=production node api/server/index.js
2024-03-20T12:45:15.741930155+01:00 
2024-03-20T12:45:16.887627276+01:00 2024-03-20 12:45:16 info: [Optional] Redis not initialized. Note: Redis support is experimental.
2024-03-20T12:45:18.259270972+01:00 2024-03-20 12:45:18 info: Connected to MongoDB
2024-03-20T12:45:18.268183529+01:00 2024-03-20 12:45:18 info: Custom config file loaded:
2024-03-20T12:45:18.268831159+01:00 2024-03-20 12:45:18 info: {
2024-03-20T12:45:18.268845698+01:00   "version": "1.0.5",
2024-03-20T12:45:18.268848858+01:00   "cache": true,
  "interface": {
2024-03-20T12:45:18.268852501+01:00     "privacyPolicy": {
2024-03-20T12:45:18.268854334+01:00       "externalUrl": "https://librechat.ai/privacy-policy",
2024-03-20T12:45:18.268855956+01:00       "op... [truncated]
2024-03-20T12:45:18.271133973+01:00 2024-03-20 12:45:18 debug: Custom config:
2024-03-20T12:45:18.271150521+01:00 {
2024-03-20T12:45:18.271154312+01:00   version: "1.0.5",
2024-03-20T12:45:18.271156220+01:00   cache: true,
2024-03-20T12:45:18.271158559+01:00     privacyPolicy.externalUrl: "https://librechat.ai/privacy-policy",
2024-03-20T12:45:18.271160278+01:00     privacyPolicy.openNewTab: true,
2024-03-20T12:45:18.271161981+01:00     termsOfService.externalUrl: "https://librechat.ai/tos",
2024-03-20T12:45:18.271163509+01:00     termsOfService.openNewTab: true,
2024-03-20T12:45:18.271164979+01:00     // 1 custom(s)
    endpoints.custom: [{"name":"ChatGPT","iconURL":"https://freepnglogo.com/images/all_img/1700403290chatgpt-png.png","apiK... [truncated]],
2024-03-20T12:45:18.271168665+01:00 }
2024-03-20T12:45:18.287593839+01:00 2024-03-20 12:45:18 info: Server listening on all interfaces at port 3080. Use http://localhost:3080 to access it
2024-03-20 12:45:41 debug: [validateJson] files
2024-03-20T12:45:41.745847339+01:00 ["\"Ai_PDF.json\"","\"BrowserOp.json\"","\"Dr_Thoths_Tarot.json\"","\"DreamInterpreter.json\"","\"VoxScript.json\"","\"askyourpdf.json\"","\"drink_maestro.json\"","\"earthImagesAndVisualizations.json\"","\"image_prompt_enhancer.json\"","\"qrCodes.json\"","\"scholarai.json\"","\"uberchord.json\"","\"web_search.json\""]
2024-03-20 12:45:42 debug: [validateJson] files
2024-03-20T12:45:42.178429757+01:00 ["\"Ai_PDF.json\"","\"BrowserOp.json\"","\"Dr_Thoths_Tarot.json\"","\"DreamInterpreter.json\"","\"VoxScript.json\"","\"askyourpdf.json\"","\"drink_maestro.json\"","\"earthImagesAndVisualizations.json\"","\"image_prompt_enhancer.json\"","\"qrCodes.json\"","\"scholarai.json\"","\"uberchord.json\"","\"web_search.json\""]
2024-03-20 12:45:51 error: Error embedding file Cannot read properties of undefined (reading 'status')
2024-03-20 12:45:51 error: [/files] Error processing file: TypeError: Cannot read properties of undefined (reading 'status')

@danny-avila
Copy link
Owner Author

Hello I tryed to setup it with hugingface but when I try to send a pdf file I have this issue :

image

I did the rag.yml setup with .env and db setup I also changed my .env config on librechat to add the new variable (RAG_API_URL=http://rag-api-svc:8000)

I restarted everything to apply the changes

This error happend on two of my endpoints :

* gemini pro 1.0 api

* copilot-gpt4-service

in addition this is my logs:

2024-03-20T12:45:15.741922741+01:00 > LibreChat@0.6.10 backend
2024-03-20T12:45:15.741927852+01:00 > cross-env NODE_ENV=production node api/server/index.js
2024-03-20T12:45:15.741930155+01:00 
2024-03-20T12:45:16.887627276+01:00 2024-03-20 12:45:16 info: [Optional] Redis not initialized. Note: Redis support is experimental.
2024-03-20T12:45:18.259270972+01:00 2024-03-20 12:45:18 info: Connected to MongoDB
2024-03-20T12:45:18.268183529+01:00 2024-03-20 12:45:18 info: Custom config file loaded:
2024-03-20T12:45:18.268831159+01:00 2024-03-20 12:45:18 info: {
2024-03-20T12:45:18.268845698+01:00   "version": "1.0.5",
2024-03-20T12:45:18.268848858+01:00   "cache": true,
  "interface": {
2024-03-20T12:45:18.268852501+01:00     "privacyPolicy": {
2024-03-20T12:45:18.268854334+01:00       "externalUrl": "https://librechat.ai/privacy-policy",
2024-03-20T12:45:18.268855956+01:00       "op... [truncated]
2024-03-20T12:45:18.271133973+01:00 2024-03-20 12:45:18 debug: Custom config:
2024-03-20T12:45:18.271150521+01:00 {
2024-03-20T12:45:18.271154312+01:00   version: "1.0.5",
2024-03-20T12:45:18.271156220+01:00   cache: true,
2024-03-20T12:45:18.271158559+01:00     privacyPolicy.externalUrl: "https://librechat.ai/privacy-policy",
2024-03-20T12:45:18.271160278+01:00     privacyPolicy.openNewTab: true,
2024-03-20T12:45:18.271161981+01:00     termsOfService.externalUrl: "https://librechat.ai/tos",
2024-03-20T12:45:18.271163509+01:00     termsOfService.openNewTab: true,
2024-03-20T12:45:18.271164979+01:00     // 1 custom(s)
    endpoints.custom: [{"name":"ChatGPT","iconURL":"https://freepnglogo.com/images/all_img/1700403290chatgpt-png.png","apiK... [truncated]],
2024-03-20T12:45:18.271168665+01:00 }
2024-03-20T12:45:18.287593839+01:00 2024-03-20 12:45:18 info: Server listening on all interfaces at port 3080. Use http://localhost:3080 to access it
2024-03-20 12:45:41 debug: [validateJson] files
2024-03-20T12:45:41.745847339+01:00 ["\"Ai_PDF.json\"","\"BrowserOp.json\"","\"Dr_Thoths_Tarot.json\"","\"DreamInterpreter.json\"","\"VoxScript.json\"","\"askyourpdf.json\"","\"drink_maestro.json\"","\"earthImagesAndVisualizations.json\"","\"image_prompt_enhancer.json\"","\"qrCodes.json\"","\"scholarai.json\"","\"uberchord.json\"","\"web_search.json\""]
2024-03-20 12:45:42 debug: [validateJson] files
2024-03-20T12:45:42.178429757+01:00 ["\"Ai_PDF.json\"","\"BrowserOp.json\"","\"Dr_Thoths_Tarot.json\"","\"DreamInterpreter.json\"","\"VoxScript.json\"","\"askyourpdf.json\"","\"drink_maestro.json\"","\"earthImagesAndVisualizations.json\"","\"image_prompt_enhancer.json\"","\"qrCodes.json\"","\"scholarai.json\"","\"uberchord.json\"","\"web_search.json\""]
2024-03-20 12:45:51 error: Error embedding file Cannot read properties of undefined (reading 'status')
2024-03-20 12:45:51 error: [/files] Error processing file: TypeError: Cannot read properties of undefined (reading 'status')

Try without huggingface first, because I haven't fully tested it aside from the default model listed. Also it would be more helpful to see the RAG API logs in this case. Embedding dimensions might be an issue but you can try sentence-transformers/all-MiniLM-L6-v2

@danny-avila
Copy link
Owner Author

@delta-whiplash Note, you may need to use RAG_API_URL=http://host.docker.internal:8000 if using docker for both LibreChat and RAG API.

Also it may be related to your device and I can look into a more flexible setup.

This setup works for me:

EMBEDDINGS_PROVIDER=huggingface
EMBEDDINGS_MODEL=sentence-transformers/all-MiniLM-L6-v2

@delta-whiplash
Copy link

@danny-avila

Ok I reviewed my .env (the rag-api one)
and I forgot to define the embedding model

I changed it and restarted everything but the issue is still there

this is the logs from rag-api :

024-03-20 12:42:27,225 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2
2024-03-20T13:42:27.227123384+01:00 2024-03-20 12:42:27,227 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): huggingface.co:443
2024-03-20T13:42:27.488513237+01:00 2024-03-20 12:42:27,486 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/modules.json HTTP/1.1" 200 0
2024-03-20T13:42:27.488548964+01:00 2024-03-20 12:42:27,487 - filelock - DEBUG - Attempting to acquire lock 140492721516752 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/952a9b81c0bfd99800fabf352f69c7ccd46c5e43.lock
2024-03-20 12:42:27,487 - filelock - DEBUG - Lock 140492721516752 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/952a9b81c0bfd99800fabf352f69c7ccd46c5e43.lock
2024-03-20T13:42:27.640273258+01:00 2024-03-20 12:42:27,639 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/modules.json HTTP/1.1" 200 349
2024-03-20T13:42:27.643800801+01:00 2024-03-20 12:42:27,643 - filelock - DEBUG - Attempting to release lock 140492721516752 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/952a9b81c0bfd99800fabf352f69c7ccd46c5e43.lock
2024-03-20T13:42:27.643834280+01:00 2024-03-20 12:42:27,643 - filelock - DEBUG - Lock 140492721516752 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/952a9b81c0bfd99800fabf352f69c7ccd46c5e43.lock
2024-03-20 12:42:27,780 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config_sentence_transformers.json HTTP/1.1" 200 0
2024-03-20T13:42:27.783355105+01:00 2024-03-20 12:42:27,783 - filelock - DEBUG - Attempting to acquire lock 140492721519008 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fd1b291129c607e5d49799f87cb219b27f98acdf.lock
2024-03-20 12:42:27,783 - filelock - DEBUG - Lock 140492721519008 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fd1b291129c607e5d49799f87cb219b27f98acdf.lock
2024-03-20T13:42:27.934936284+01:00 2024-03-20 12:42:27,934 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config_sentence_transformers.json HTTP/1.1" 200 116
2024-03-20 12:42:27,935 - filelock - DEBUG - Attempting to release lock 140492721519008 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fd1b291129c607e5d49799f87cb219b27f98acdf.lock
2024-03-20T13:42:27.935953805+01:00 2024-03-20 12:42:27,935 - filelock - DEBUG - Lock 140492721519008 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fd1b291129c607e5d49799f87cb219b27f98acdf.lock
2024-03-20 12:42:28,076 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/README.md HTTP/1.1" 200 0
2024-03-20T13:42:28.077389404+01:00 2024-03-20 12:42:28,077 - filelock - DEBUG - Attempting to acquire lock 140492721518048 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/8cfec92309f5626a223304af2423e332f6d31887.lock
2024-03-20T13:42:28.077535940+01:00 2024-03-20 12:42:28,077 - filelock - DEBUG - Lock 140492721518048 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/8cfec92309f5626a223304af2423e332f6d31887.lock
2024-03-20 12:42:28,221 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/README.md HTTP/1.1" 200 10659
2024-03-20 12:42:28,222 - filelock - DEBUG - Attempting to release lock 140492721518048 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/8cfec92309f5626a223304af2423e332f6d31887.lock
2024-03-20T13:42:28.222429743+01:00 2024-03-20 12:42:28,222 - filelock - DEBUG - Lock 140492721518048 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/8cfec92309f5626a223304af2423e332f6d31887.lock
2024-03-20T13:42:28.421496460+01:00 2024-03-20 12:42:28,418 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/modules.json HTTP/1.1" 200 0
2024-03-20 12:42:28,560 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/sentence_bert_config.json HTTP/1.1" 200 0
2024-03-20T13:42:28.562056566+01:00 2024-03-20 12:42:28,561 - filelock - DEBUG - Attempting to acquire lock 140492721517520 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/59d594003bf59880a884c574bf88ef7555bb0202.lock
2024-03-20T13:42:28.562328581+01:00 2024-03-20 12:42:28,562 - filelock - DEBUG - Lock 140492721517520 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/59d594003bf59880a884c574bf88ef7555bb0202.lock
2024-03-20 12:42:28,722 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/sentence_bert_config.json HTTP/1.1" 200 53
2024-03-20T13:42:28.723423126+01:00 2024-03-20 12:42:28,723 - filelock - DEBUG - Attempting to release lock 140492721517520 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/59d594003bf59880a884c574bf88ef7555bb0202.lock
2024-03-20 12:42:28,723 - filelock - DEBUG - Lock 140492721517520 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/59d594003bf59880a884c574bf88ef7555bb0202.lock
2024-03-20T13:42:28.861230171+01:00 2024-03-20 12:42:28,858 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json HTTP/1.1" 200 0
2024-03-20T13:42:28.861257419+01:00 2024-03-20 12:42:28,859 - filelock - DEBUG - Attempting to acquire lock 140492721518816 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/72b987fd805cfa2b58c4c8c952b274a11bfd5a00.lock
2024-03-20 12:42:28,859 - filelock - DEBUG - Lock 140492721518816 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/72b987fd805cfa2b58c4c8c952b274a11bfd5a00.lock
2024-03-20T13:42:29.008627151+01:00 2024-03-20 12:42:29,001 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json HTTP/1.1" 200 612
2024-03-20 12:42:29,002 - filelock - DEBUG - Attempting to release lock 140492721518816 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/72b987fd805cfa2b58c4c8c952b274a11bfd5a00.lock
2024-03-20 12:42:29,002 - filelock - DEBUG - Lock 140492721518816 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/72b987fd805cfa2b58c4c8c952b274a11bfd5a00.lock
2024-03-20T13:42:29.373038725+01:00 2024-03-20 12:42:29,372 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/model.safetensors HTTP/1.1" 404 0
2024-03-20T13:42:29.520121745+01:00 2024-03-20 12:42:29,519 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/model.safetensors.index.json HTTP/1.1" 404 0
2024-03-20T13:42:29.666436598+01:00 2024-03-20 12:42:29,666 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/pytorch_model.bin HTTP/1.1" 302 0
2024-03-20T13:42:29.668364852+01:00 2024-03-20 12:42:29,668 - filelock - DEBUG - Attempting to acquire lock 140492721963312 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:42:29.668647061+01:00 2024-03-20 12:42:29,668 - filelock - DEBUG - Lock 140492721963312 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:42:29.671610142+01:00 2024-03-20 12:42:29,671 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): cdn-lfs.huggingface.co:443
2024-03-20T13:42:29.855874765+01:00 2024-03-20 12:42:29,855 - urllib3.connectionpool - DEBUG - https://cdn-lfs.huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27pytorch_model.bin%3B+filename%3D%22pytorch_model.bin%22%3B&response-content-type=application%2Foctet-stream&Expires=1711197216&Policy=ey
JTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcxMTE5NzIxNn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy5odWdnaW5nZmFjZS5jby9zZW50ZW5jZS10cmFuc2Zvcm1lcnMvYWxsLU1pbmlMTS1MNi12Mi9jM2E4NWYyMzg3MTE2NTM5NTBmNmE3OWVjZTYzZWIwZWE5M2Q3NmY2YTYyODRiZTA0MDE5YzUzNzMzYmFmMjU2P3Jlc3BvbnNlLWNvbnRlbnQtZGlzcG9zaXRpb249KiZyZXNwb25zZS1jb250ZW50LXR5cGU9KiJ9XX0_&Signature=TrJeIuCUggYEf08Xw1U-8E9OUOY01~QE4yGhkfS3G8s1-7XsujeQyFZcVE4xPz2KwoTjqpONwng1s2k2EK96pRsTgPDRdupRy8jwD31yRT9DK29TluOpqMdLBw-5N7BEkQHoAKnrGCxGEV4PP2yiod-7ccCIp4YmagEpqopNh-svrw7PnO2WDWTaZ7yGklVR9nUVZDEzYMa8EC6Sueq6cG5fRp4XA5IB0Wy9MyB6qr8fQuZvzUqI8zVZnSHiSuH~k5o-kIEJyoAfEsSP0b0NGs5kbiYugB36HhZBOBYelVMrMT4ujeFXtPJLt7qV~V3pigmvPW-J8QdnkuF063Hj3Q__&Key-Pair-Id=KVTP0A1DKRTAX HTTP/1.1" 200 90888945
2024-03-20T13:42:31.208496456+01:00 2024-03-20 12:42:31,208 - filelock - DEBUG - Attempting to release lock 140492721963312 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20 12:42:31,208 - filelock - DEBUG - Lock 140492721963312 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:42:31.435018423+01:00 2024-03-20 12:42:31,434 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer_config.json HTTP/1.1" 200 0
2024-03-20T13:42:31.437427770+01:00 2024-03-20 12:42:31,437 - filelock - DEBUG - Attempting to acquire lock 140492705554080 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20 12:42:31,437 - filelock - DEBUG - Lock 140492705554080 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:42:31.884796882+01:00 2024-03-20 12:42:31,884 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer_config.json HTTP/1.1" 200 350
2024-03-20T13:42:31.887700268+01:00 2024-03-20 12:42:31,887 - filelock - DEBUG - Attempting to release lock 140492705554080 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:42:31.887775514+01:00 2024-03-20 12:42:31,887 - filelock - DEBUG - Lock 140492705554080 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:42:32.083753213+01:00 2024-03-20 12:42:32,083 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/vocab.txt HTTP/1.1" 200 0
2024-03-20T13:42:32.085382323+01:00 2024-03-20 12:42:32,085 - filelock - DEBUG - Attempting to acquire lock 140492703210304 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:42:32.085729528+01:00 2024-03-20 12:42:32,085 - filelock - DEBUG - Lock 140492703210304 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20 12:42:32,229 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/vocab.txt HTTP/1.1" 200 231508
2024-03-20T13:42:32.446696885+01:00 2024-03-20 12:42:32,446 - filelock - DEBUG - Attempting to release lock 140492703210304 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:42:32.446782041+01:00 2024-03-20 12:42:32,446 - filelock - DEBUG - Lock 140492703210304 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:42:32.610964019+01:00 2024-03-20 12:42:32,610 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json HTTP/1.1" 200 0
2024-03-20T13:42:32.613025948+01:00 2024-03-20 12:42:32,612 - filelock - DEBUG - Attempting to acquire lock 140492703210304 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:42:32.613341020+01:00 2024-03-20 12:42:32,613 - filelock - DEBUG - Lock 140492703210304 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:42:32.863982394+01:00 2024-03-20 12:42:32,863 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json HTTP/1.1" 200 466247
2024-03-20 12:42:33,168 - filelock - DEBUG - Attempting to release lock 140492703210304 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:42:33.169554598+01:00 2024-03-20 12:42:33,169 - filelock - DEBUG - Lock 140492703210304 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:42:33.392044101+01:00 2024-03-20 12:42:33,391 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/added_tokens.json HTTP/1.1" 404 0
2024-03-20T13:42:33.535962965+01:00 2024-03-20 12:42:33,535 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/special_tokens_map.json HTTP/1.1" 200 0
2024-03-20T13:42:33.538576270+01:00 2024-03-20 12:42:33,538 - filelock - DEBUG - Attempting to acquire lock 140492703210880 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:42:33.538904925+01:00 2024-03-20 12:42:33,538 - filelock - DEBUG - Lock 140492703210880 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:42:33.682367401+01:00 2024-03-20 12:42:33,682 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/special_tokens_map.json HTTP/1.1" 200 112
2024-03-20T13:42:33.684553055+01:00 2024-03-20 12:42:33,684 - filelock - DEBUG - Attempting to release lock 140492703210880 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20 12:42:33,684 - filelock - DEBUG - Lock 140492703210880 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:42:34.304416685+01:00 2024-03-20 12:42:34,303 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /api/models/sentence-transformers/all-MiniLM-L6-v2/revision/main HTTP/1.1" 200 18462
2024-03-20T13:42:34.319228871+01:00 2024-03-20 12:42:34,319 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): huggingface.co:443
2024-03-20T13:42:34.546869944+01:00 2024-03-20 12:42:34,546 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/44eb4044493a3c34bc6d7faae1a71ec76665ebc6/1_Pooling/config.json HTTP/1.1" 200 0
2024-03-20T13:42:34.549334748+01:00 2024-03-20 12:42:34,549 - filelock - DEBUG - Attempting to acquire lock 140492701424304 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:42:34.549771002+01:00 2024-03-20 12:42:34,549 - filelock - DEBUG - Lock 140492701424304 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:42:34.693622186+01:00 2024-03-20 12:42:34,693 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/44eb4044493a3c34bc6d7faae1a71ec76665ebc6/1_Pooling/config.json HTTP/1.1" 200 190
2024-03-20T13:42:34.696378319+01:00 2024-03-20 12:42:34,696 - filelock - DEBUG - Attempting to release lock 140492701424304 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20 12:42:34,696 - filelock - DEBUG - Lock 140492701424304 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:42:34.698472582+01:00 2024-03-20 12:42:34,698 - sentence_transformers.SentenceTransformer - INFO - Use pytorch device_name: cpu
2024-03-20T13:42:34.701501134+01:00 2024-03-20 12:42:34,701 - root - INFO - Initialized embeddings of type: <class 'langchain_community.embeddings.huggingface.HuggingFaceEmbeddings'>

the logs from librechat :


2024-03-20T13:38:12.793855994+01:00 > LibreChat@0.6.10 backend
> cross-env NODE_ENV=production node api/server/index.js

2024-03-20T13:38:14.192413375+01:00 2024-03-20 13:38:14 info: [Optional] Redis not initialized. Note: Redis support is experimental.
2024-03-20T13:38:15.805679072+01:00 2024-03-20 13:38:15 info: Connected to MongoDB
2024-03-20T13:38:15.820124727+01:00 2024-03-20 13:38:15 info: Custom config file loaded:
2024-03-20T13:38:15.820530872+01:00 2024-03-20 13:38:15 info: {
2024-03-20T13:38:15.820543130+01:00   "version": "1.0.5",
2024-03-20T13:38:15.820545800+01:00   "cache": true,
2024-03-20T13:38:15.820547848+01:00   "interface": {
2024-03-20T13:38:15.820549500+01:00     "privacyPolicy": {
2024-03-20T13:38:15.820551338+01:00       "externalUrl": "https://librechat.ai/privacy-policy",
2024-03-20T13:38:15.820552859+01:00       "op... [truncated]
2024-03-20T13:38:15.823130304+01:00 2024-03-20 13:38:15 debug: Custom config:
2024-03-20T13:38:15.823154267+01:00 {
2024-03-20T13:38:15.823157509+01:00   version: "1.0.5",
2024-03-20T13:38:15.823159312+01:00   cache: true,
2024-03-20T13:38:15.823161194+01:00     privacyPolicy.externalUrl: "https://librechat.ai/privacy-policy",
2024-03-20T13:38:15.823162681+01:00     privacyPolicy.openNewTab: true,
2024-03-20T13:38:15.823164390+01:00     termsOfService.externalUrl: "https://librechat.ai/tos",
2024-03-20T13:38:15.823166291+01:00     termsOfService.openNewTab: true,
2024-03-20T13:38:15.823167755+01:00     // 1 custom(s)
2024-03-20T13:38:15.823169715+01:00     endpoints.custom: [{"name":"ChatGPT","iconURL":"https://freepnglogo.com/images/all_img/1700403290chatgpt-png.png","apiK... [truncated]],
2024-03-20T13:38:15.823171221+01:00 }
2024-03-20T13:38:15.840468088+01:00 2024-03-20 13:38:15 info: Server listening on all interfaces at port 3080. Use http://localhost:3080 to access it
2024-03-20 13:38:30 debug: [validateJson] files
2024-03-20T13:38:30.704129948+01:00 ["\"Ai_PDF.json\"","\"BrowserOp.json\"","\"Dr_Thoths_Tarot.json\"","\"DreamInterpreter.json\"","\"VoxScript.json\"","\"askyourpdf.json\"","\"drink_maestro.json\"","\"earthImagesAndVisualizations.json\"","\"image_prompt_enhancer.json\"","\"qrCodes.json\"","\"scholarai.json\"","\"uberchord.json\"","\"web_search.json\""]
2024-03-20 13:38:31 debug: [validateJson] files
2024-03-20T13:38:31.277700166+01:00 ["\"Ai_PDF.json\"","\"BrowserOp.json\"","\"Dr_Thoths_Tarot.json\"","\"DreamInterpreter.json\"","\"VoxScript.json\"","\"askyourpdf.json\"","\"drink_maestro.json\"","\"earthImagesAndVisualizations.json\"","\"image_prompt_enhancer.json\"","\"qrCodes.json\"","\"scholarai.json\"","\"uberchord.json\"","\"web_search.json\""]
2024-03-20 13:38:40 error: Error embedding file Cannot read properties of undefined (reading 'status')
2024-03-20 13:38:40 error: [/files] Error processing file: TypeError: Cannot read properties of undefined (reading 'status')

this is my rag-api .env file :

#OPENAI_API_KEY=
POSTGRES_DB=rag-api-db
POSTGRES_USER=rag-api-user
POSTGRES_PASSWORD=KV3Ai2f9wXCj3hcvkc9nifzeA
DB_HOST=rag-api-db-svc
DB_PORT=5432
JWT_SECRET=mysecret
#COLLECTION_NAME=
#CHUNK_SIZE=
#CHUNK_OVERLAP=
#RAG_UPLOAD_DIR=
#PDF_EXTRACT_IMAGES=
DEBUG_RAG_API=True
EMBEDDINGS_PROVIDER=huggingface
EMBEDDINGS_MODEL=sentence-transformers/all-MiniLM-L6-v2
HF_TOKEN=my readonly hf token

this is my librechat yaml :

# Configuration version (required)
  version: 1.0.5
  cache: true
  interface:
    # Privacy policy settings
    privacyPolicy:
      externalUrl: 'https://librechat.ai/privacy-policy'
      openNewTab: true

    # Terms of service
    termsOfService:
      externalUrl: 'https://librechat.ai/tos'
      openNewTab: true
  endpoints:
    custom:
      - name: "ChatGPT"
        iconURL: https://freepnglogo.com/images/all_img/1700403290chatgpt-png.png
        apiKey: "SECRET API KEY"
        baseURL: "http://copilot-gpt4-service.pemberton/v1"
        models:
          default: ["gpt-4", "gpt-3.5-turbo"]
        titleConvo: true
        titleModel: "gpt-3.5-turbo"
        summarize: true
        summaryModel: "gpt-3.5-turbo"
        forcePrompt: false
        modelDisplayLabel: "chatgpt-4"
        dropParams: ["user"]

@danny-avila
Copy link
Owner Author

I believe you are not making a successful connection to the RAG API. I will add a health check route to verify this.

try in your browser to access it: http://rag_api:port/docs

@delta-whiplash
Copy link

You're right I can't access it

BTW I observed multiples restart from the container

>a93d76f6a6284be04019c53733baf256?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27pytorch_model.bin%3B+filename%3D%22pytorch_model.bin%22%3B&amp;response-content-type=application%2Foctet-stream&amp;Expires=1711198612&amp;Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcxMTE5ODYxMn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy5odWdnaW5nZmFjZS5jby9zZW50ZW5jZS10cmFuc2Zvcm1lcnMvYWxsLU1pbmlMTS1MNi12Mi9jM2E4NWYyMzg3MTE2NTM5NTBmNmE3OWVjZTYzZWIwZWE5M2Q3NmY2YTYyODRiZTA0MDE5YzUzNzMzYmFmMjU2P3Jlc3BvbnNlLWNvbnRlbnQtZGlzcG9zaXRpb249KiZyZXNwb25zZS1jb250ZW50LXR5cGU9KiJ9XX0_&amp;Signature=xnKzfd6XZlPDp3JPPXj6a96oGRIsk6EbtcPLk3JNMH5ue0ZWkXTFbEZVSobrEENJIgItMfxdyDcWkGAUHBEaGIxvElnHxVcl8LenUVmIzckQ1zIpWCvCwIfA8y2aB3umAA7Ef7oEkZr98t85VRnOZfunJ9pD5J-A-~jkitCVvzHB8l22A5KHD~eziCU8XWtt-ljAnH53LWCBCCbgFT2784JYrsxA9GyC1CEWfqdp1Md8n5qzvmelAYfGvvWc99T4IV~-ixGfJTHri6W-V6T</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">Z6R1v~YHLTVpS23W3JIIXM99JTn0byTk5URbFisCS~q7q-4PIRConaXCpUujgs6kJvQ__&amp;Key-Pair-Id=KVTP0A1DKRTAX HTTP/1.1" 200 90888945
2024-03-20T13:59:24.251832137+01:00 2024-03-20 12:59:24,251 - filelock - DEBUG - Attempting to release lock 140284926116912 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:59:24.251856952+01:00 2024-03-20 12:59:24,251 - filelock - DEBUG - Lock 140284926116912 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:59:24.489317050+01:00 2024-03-20 12:59:24,488 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer_config.json HTTP/1.1" 200 0
2024-03-20T13:59:24.491320849+01:00 2024-03-20 12:59:24,491 - filelock - DEBUG - Attempting to acquire lock 140284910150048 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:59:24.491667736+01:00 2024-03-20 12:59:24,491 - filelock - DEBUG - Lock 140284910150048 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:59:24.635122984+01:00 2024-03-20 12:59:24,634 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer_config.json HTTP/1.1" 200 350
2024-03-20T13:59:24.637089553+01:00 2024-03-20 12:59:24,636 - filelock - DEBUG - Attempting to release lock 140284910150048 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:59:24.637184950+01:00 2024-03-20 12:59:24,637 - filelock - DEBUG - Lock 140284910150048 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--al</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">l-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:59:24.786826395+01:00 2024-03-20 12:59:24,786 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/vocab.txt HTTP/1.1" 200 0
2024-03-20T13:59:24.789287860+01:00 2024-03-20 12:59:24,789 - filelock - DEBUG - Attempting to acquire lock 140284907805840 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:59:24.789806033+01:00 2024-03-20 12:59:24,789 - filelock - DEBUG - Lock 140284907805840 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:59:25.013929427+01:00 2024-03-20 12:59:25,012 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/vocab.txt HTTP/1.1" 200 231508
2024-03-20T13:59:25.225374339+01:00 2024-03-20 12:59:25,224 - filelock - DEBUG - Attempting to release lock 140284907805840 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:59:25.225802380+01:00 2024-03-20 12:59:25,225 - filelock - DEBUG - Lock 140284907805840 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:59:25.369123248+01:00 2024-03-20 12:59:25,368 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json HTTP/1.1" 200 0
2024-03-20T13:59:25.371538892+01:00 2024-03-20 12:59:25,371 - filelock - DEBUG - Attempting to acquire lock 140284907805840 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:59:25.371811274+01:00 2024-03-20 12:59:25,371 - filelock - DEBUG - Lock 140284907805</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;">Sun, Jan 1 840 12:00:00 am</span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:59:25.516580557+01:00 2024-03-20 12:59:25,516 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json HTTP/1.1" 200 466247
2024-03-20T13:59:25.817142665+01:00 2024-03-20 12:59:25,816 - filelock - DEBUG - Attempting to release lock 140284907805840 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:59:25.817191981+01:00 2024-03-20 12:59:25,817 - filelock - DEBUG - Lock 140284907805840 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:59:25.957091077+01:00 2024-03-20 12:59:25,956 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/added_tokens.json HTTP/1.1" 404 0
2024-03-20T13:59:26.102184422+01:00 2024-03-20 12:59:26,101 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/special_tokens_map.json HTTP/1.1" 200 0
2024-03-20T13:59:26.103691212+01:00 2024-03-20 12:59:26,103 - filelock - DEBUG - Attempting to acquire lock 140284907806512 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:59:26.103989244+01:00 2024-03-20 12:59:26,103 - filelock - DEBUG - Lock 140284907806512 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:59:26.239670342+01:00 2024-03-20 12:59:26,239 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/special_tokens_map.json HTTP/1.1" 200 112
2024-03-20T13:59:26.242196</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">623+01:00 2024-03-20 12:59:26,241 - filelock - DEBUG - Attempting to release lock 140284907806512 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:59:26.242309776+01:00 2024-03-20 12:59:26,242 - filelock - DEBUG - Lock 140284907806512 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:59:26.595836625+01:00 2024-03-20 12:59:26,595 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /api/models/sentence-transformers/all-MiniLM-L6-v2/revision/main HTTP/1.1" 200 18462
2024-03-20T13:59:26.612418508+01:00 2024-03-20 12:59:26,612 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): huggingface.co:443
2024-03-20T13:59:26.849652836+01:00 2024-03-20 12:59:26,849 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/44eb4044493a3c34bc6d7faae1a71ec76665ebc6/1_Pooling/config.json HTTP/1.1" 200 0
2024-03-20T13:59:26.851460260+01:00 2024-03-20 12:59:26,851 - filelock - DEBUG - Attempting to acquire lock 140284701055904 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:59:26.851814608+01:00 2024-03-20 12:59:26,851 - filelock - DEBUG - Lock 140284701055904 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:59:26.997594504+01:00 2024-03-20 12:59:26,997 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/44eb4044493a3c34bc6d7faae1a71ec76665ebc6/1_Pooling/config.json HTTP/1.1" 200 190
2024-03-20T13:59:27.000086426+01:00 2024-03-20 12:59:26,999 - filelock - DEBUG - Attempting to release lock 140284701055904 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-Mi</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">niLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:59:27.003045307+01:00 2024-03-20 12:59:26,999 - filelock - DEBUG - Lock 140284701055904 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:59:27.003075516+01:00 2024-03-20 12:59:27,001 - sentence_transformers.SentenceTransformer - INFO - Use pytorch device_name: cpu
2024-03-20T13:59:27.004974719+01:00 2024-03-20 12:59:27,004 - root - INFO - Initialized embeddings of type: &lt;class 'langchain_community.embeddings.huggingface.HuggingFaceEmbeddings'&gt;
2024-03-20T14:01:37.680650095+01:00 Traceback (most recent call last):
2024-03-20T14:01:37.680689389+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
2024-03-20T14:01:37.680695498+01:00     self._dbapi_connection = engine.raw_connection()
2024-03-20T14:01:37.680698793+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3303, in raw_connection
2024-03-20T14:01:37.680702240+01:00     return self.pool.connect()
2024-03-20T14:01:37.680705741+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 449, in connect
2024-03-20T14:01:37.680709240+01:00     return _ConnectionFairy._checkout(self)
2024-03-20T14:01:37.680712154+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout
2024-03-20T14:01:37.680730003+01:00     fairy = _ConnectionRecord.checkout(pool)
2024-03-20T14:01:37.680733532+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
2024-03-20T14:01:37.680736681+01:00     rec = pool._do_get()
2024-03-20T14:01:37.680739449+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
2024-03-20T14:01:37.680742178+01:00     with util.safe_reraise():
2024-03-20T14:01:37.680744915+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/lang</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">helpers.py", line 146, in __exit__
2024-03-20T14:01:37.680747740+01:00     raise exc_value.with_traceback(exc_tb)
2024-03-20T14:01:37.680750405+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
2024-03-20T14:01:37.680753079+01:00     return self._create_connection()
2024-03-20T14:01:37.680755761+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
2024-03-20T14:01:37.680758420+01:00     return _ConnectionRecord(self)
2024-03-20T14:01:37.680761071+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 674, in __init__
2024-03-20T14:01:37.680763743+01:00     self.__connect()
2024-03-20T14:01:37.680766378+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
2024-03-20T14:01:37.680769110+01:00     with util.safe_reraise():
2024-03-20T14:01:37.680771847+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
2024-03-20T14:01:37.680774527+01:00     raise exc_value.with_traceback(exc_tb)
2024-03-20T14:01:37.680778058+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
2024-03-20T14:01:37.680781048+01:00     self.dbapi_connection = connection = pool._invoke_creator(self)
2024-03-20T14:01:37.680783894+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 643, in connect
2024-03-20T14:01:37.680786672+01:00     return dialect.connect(*cargs, **cparams)
2024-03-20T14:01:37.680789355+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 616, in connect
2024-03-20T14:01:37.680792115+01:00     return self.loaded_dbapi.connect(*cargs, **cparams)
2024-03-20T14:01:37.680794808+01:00   File "/usr/local/lib/python3.10/site-packages/psycopg2/__init__.py", line 122, in connect
2024-03-20T14:01:37.680797441+01:00     conn = _connect(dsn, connection_factory=connection_factory, *</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">*kwasync)
2024-03-20T14:01:37.680800561+01:00 psycopg2.OperationalError: connection to server at "rag-api-svc" (10.43.171.89), port 5432 failed: Connection timed out
2024-03-20T14:01:37.680803198+01:00 	Is the server running on that host and accepting TCP/IP connections?
2024-03-20T14:01:37.680805738+01:00 
2024-03-20T14:01:37.680808286+01:00 
2024-03-20T14:01:37.680810961+01:00 The above exception was the direct cause of the following exception:
2024-03-20T14:01:37.680813586+01:00 
2024-03-20T14:01:37.680816323+01:00 Traceback (most recent call last):
2024-03-20T14:01:37.680819638+01:00   File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 253, in create_vector_extension
2024-03-20T14:01:37.680822519+01:00     session.execute(statement)
2024-03-20T14:01:37.680825319+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2306, in execute
2024-03-20T14:01:37.680828352+01:00     return self._execute_internal(
2024-03-20T14:01:37.680831136+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2181, in _execute_internal
2024-03-20T14:01:37.680838833+01:00     conn = self._connection_for_bind(bind)
2024-03-20T14:01:37.680842019+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2050, in _connection_for_bind
2024-03-20T14:01:37.680844959+01:00     return trans._connection_for_bind(engine, execution_options)
2024-03-20T14:01:37.680847847+01:00   File "&lt;string&gt;", line 2, in _connection_for_bind
2024-03-20T14:01:37.680850608+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
2024-03-20T14:01:37.680853350+01:00     ret_value = fn(self, *arg, **kw)
2024-03-20T14:01:37.680856193+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 1144, in _connection_for_bind
2024-03-20T14:01:37.680862667+01:00     conn = bind.connect()
2024-03-20T14:01:37.680866420+01:00   File "/usr/local/lib/python3.10/site</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">-packages/sqlalchemy/engine/base.py", line 3279, in connect
2024-03-20T14:01:37.680869389+01:00     return self._connection_cls(self)
2024-03-20T14:01:37.680872211+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 147, in __init__
2024-03-20T14:01:37.680874933+01:00     Connection._handle_dbapi_exception_noconnection(
2024-03-20T14:01:37.680877545+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2443, in _handle_dbapi_exception_noconnection
2024-03-20T14:01:37.680880180+01:00     raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
2024-03-20T14:01:37.680895549+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
2024-03-20T14:01:37.680901858+01:00     self._dbapi_connection = engine.raw_connection()
2024-03-20T14:01:37.680904938+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3303, in raw_connection
2024-03-20T14:01:37.680907682+01:00     return self.pool.connect()
2024-03-20T14:01:37.680910326+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 449, in connect
2024-03-20T14:01:37.680913075+01:00     return _ConnectionFairy._checkout(self)
2024-03-20T14:01:37.680915880+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout
2024-03-20T14:01:37.680918622+01:00     fairy = _ConnectionRecord.checkout(pool)
2024-03-20T14:01:37.680921308+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
2024-03-20T14:01:37.680924074+01:00     rec = pool._do_get()
2024-03-20T14:01:37.680926870+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
2024-03-20T14:01:37.680929711+01:00     with util.safe_reraise():
2024-03-20T14:01:37.680932398+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
2024-03-20T14:01:37.680935049+01:00     </span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">raise exc_value.with_traceback(exc_tb)
2024-03-20T14:01:37.680937755+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
2024-03-20T14:01:37.680940416+01:00     return self._create_connection()
2024-03-20T14:01:37.680943060+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
2024-03-20T14:01:37.680945757+01:00     return _ConnectionRecord(self)
</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;">Wed, Mar 20 2024 2:01:37 pm</span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 674, in __init__
2024-03-20T14:01:37.680951529+01:00     self.__connect()
2024-03-20T14:01:37.680954406+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
2024-03-20T14:01:37.680962450+01:00     with util.safe_reraise():
2024-03-20T14:01:37.680965615+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
2024-03-20T14:01:37.680968321+01:00     raise exc_value.with_traceback(exc_tb)
2024-03-20T14:01:37.680971154+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
2024-03-20T14:01:37.680973925+01:00     self.dbapi_connection = connection = pool._invoke_creator(self)
2024-03-20T14:01:37.680976818+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 643, in connect
2024-03-20T14:01:37.680979545+01:00     return dialect.connect(*cargs, **cparams)
2024-03-20T14:01:37.680982258+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 616, in connect
2024-03-20T14:01:37.680985184+01:00     return self.loaded_dbapi.connect(*cargs, **cparams)
2024-03-20T14:01:37.680988060+01:00   File "/usr/local/lib/python3.10/site-packages/psycopg2/__init__.py", line 122, in connect
2024-03-20T14:01:37.680990909+01:00     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
2024-03-20T14:01:37.680994568+01:00 sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "rag-api-svc" (10.43.171.89), port 5432 failed: Connection timed out
2024-03-20T14:01:37.680997378+01:00 	Is the server running on that host and accepting TCP/IP connections?
2024-03-20T14:01:37.681000047+01:00 
2024-03-20T14:01:37.681002880+01:00 (Background on this error at: https://sqlalche.me/e/20/e3q8)
2024-03-20T14:01:37.681005437+01:00 
2024-03-20T14:01:37.681008200+01:00 The above exceptio</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">n was the direct cause of the following exception:
2024-03-20T14:01:37.681010709+01:00 
2024-03-20T14:01:37.681013453+01:00 Traceback (most recent call last):
2024-03-20T14:01:37.681016325+01:00   File "/usr/local/bin/uvicorn", line 8, in &lt;module&gt;
2024-03-20T14:01:37.681019299+01:00     sys.exit(main())
</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;">Wed, Mar 20 2024 2:01:37 pm</span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
2024-03-20T14:01:37.681024992+01:00     return self.main(*args, **kwargs)
2024-03-20T14:01:37.681029698+01:00   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main
2024-03-20T14:01:37.681032843+01:00     rv = self.invoke(ctx)
2024-03-20T14:01:37.681035693+01:00   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
2024-03-20T14:01:37.681038413+01:00     return ctx.invoke(self.callback, **ctx.params)
2024-03-20T14:01:37.681041078+01:00   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
2024-03-20T14:01:37.681043750+01:00     return __callback(*args, **kwargs)
2024-03-20T14:01:37.681046599+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/main.py", line 409, in main
</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;">Wed, Mar 20 2024 2:01:37 pm</span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">    run(
2024-03-20T14:01:37.681052175+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/main.py", line 575, in run
2024-03-20T14:01:37.681054973+01:00     server.run()
2024-03-20T14:01:37.681057710+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 62, in run
2024-03-20T14:01:37.681060378+01:00     return asyncio.run(self.serve(sockets=sockets))
2024-03-20T14:01:37.681063086+01:00   File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
2024-03-20T14:01:37.681065880+01:00     return loop.run_until_complete(main)
2024-03-20T14:01:37.681068680+01:00   File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
2024-03-20T14:01:37.681071597+01:00     return future.result()
2024-03-20T14:01:37.681078721+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 69, in serve
2024-03-20T14:01:37.681081607+01:00     config.load()
2024-03-20T14:01:37.681084505+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/config.py", line 433, in load
2024-03-20T14:01:37.681087236+01:00     self.loaded_app = import_from_string(self.app)
2024-03-20T14:01:37.681099505+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/importer.py", line 19, in import_from_string
2024-03-20T14:01:37.681103981+01:00     module = importlib.import_module(module_str)
2024-03-20T14:01:37.681106864+01:00   File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
2024-03-20T14:01:37.681109672+01:00     return _bootstrap._gcd_import(name[level:], package, level)
2024-03-20T14:01:37.681112456+01:00   File "&lt;frozen importlib._bootstrap&gt;", line 1050, in _gcd_import
2024-03-20T14:01:37.681115240+01:00   File "&lt;frozen importlib._bootstrap&gt;", line 1027, in _find_and_load
2024-03-20T14:01:37.681118185+01:00   File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _find_and_load_unlocked
2024-03-20T14:01:37.681121031+01:00   File "&lt;frozen importlib._bootstrap&gt;", line 688, in _load_unloc</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;"></span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">ked
2024-03-20T14:01:37.681123896+01:00   File "&lt;frozen importlib._bootstrap_external&gt;", line 883, in exec_module
2024-03-20T14:01:37.681126992+01:00   File "&lt;frozen importlib._bootstrap&gt;", line 241, in _call_with_frames_removed
2024-03-20T14:01:37.681129906+01:00   File "/app/main.py", line 25, in &lt;module&gt;
2024-03-20T14:01:37.681132703+01:00     from psql import PSQLDatabase, ensure_custom_id_index_on_embedding
2024-03-20T14:01:37.681135447+01:00   File "/app/psql.py", line 3, in &lt;module&gt;
2024-03-20T14:01:37.681138197+01:00     from config import DSN, logger
2024-03-20T14:01:37.681140950+01:00   File "/app/config.py", line 85, in &lt;module&gt;
2024-03-20T14:01:37.681144021+01:00     vector_store = get_vector_store(
2024-03-20T14:01:37.681146859+01:00   File "/app/store_factory.py", line 19, in get_vector_store
2024-03-20T14:01:37.681149822+01:00     return AsyncPgVector(
2024-03-20T14:01:37.681153190+01:00   File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 212, in __init__
</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;">Wed, Mar 20 2024 2:01:37 pm</span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">    self.__post_init__()
2024-03-20T14:01:37.681158893+01:00   File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 218, in __post_init__
2024-03-20T14:01:37.681162364+01:00     self.create_vector_extension()
2024-03-20T14:01:37.681165286+01:00   File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 256, in create_vector_extension
2024-03-20T14:01:37.681168103+01:00     raise Exception(f"Failed to create vector extension: {e}") from e
</span></div></div><div role="listitem" class="" bis_skin_checked="1" style="box-sizing: inherit;"><div data-v-71be2d70="" class="line" bis_skin_checked="1" style="box-sizing: inherit; font-family: Menlo, Consolas, monospace; color: var(--logs-text); display: flex;"><span data-v-71be2d70="" class="time" style="box-sizing: inherit; white-space: nowrap; display: initial; width: auto; padding-right: 15px; user-select: none;">Wed, Mar 20 2024 2:01:37 pm</span><span data-v-71be2d70="" class="msg" style="box-sizing: inherit; white-space: pre-wrap;">Exception: Failed to create vector extension: (psycopg2.OperationalError) connection to server at "rag-api-svc" (10.43.171.89), port 5432 failed: Connection timed out
2024-03-20T14:01:37.681174258+01:00 	Is the server running on that host and accepting TCP/IP connections?
2024-03-20T14:01:37.681176992+01:00 
2024-03-20T14:01:37.681180039+01:00 (Background on this error at: https://sqlalche.me/e/20/e3q8)</span></div></div></div></div></div></div></div></div></div></div><!--EndFragment-->
</body>
</html>1 selected
State
Name
Image
Ready
Restarts
IP
Node
Age
Running
[rag-api-698454bd6c-fb2fj](https://rancher.pemberton/dashboard/c/local/explorer/pod/delta-net-caduceus/rag-api-698454bd6c-fb2fj)	ghcr.io/danny-avila/librechat-rag-api-dev
1/1	5 (82s ago)	10.42.2.74	[constance](https://rancher.pemberton/dashboard/c/local/explorer/node/constance)	17 mins	
Container: rag-api
Filter
Disconnected
2024-03-20 12:59:20,397 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2
2024-03-20T13:59:20.399468331+01:00 2024-03-20 12:59:20,399 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): huggingface.co:443
2024-03-20T13:59:20.677408223+01:00 2024-03-20 12:59:20,676 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/modules.json HTTP/1.1" 200 0
2024-03-20T13:59:20.680060241+01:00 2024-03-20 12:59:20,679 - filelock - DEBUG - Attempting to acquire lock 140284925752272 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/952a9b81c0bfd99800fabf352f69c7ccd46c5e43.lock
2024-03-20T13:59:20.680555784+01:00 2024-03-20 12:59:20,680 - filelock - DEBUG - Lock 140284925752272 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/952a9b81c0bfd99800fabf352f69c7ccd46c5e43.lock
2024-03-20T13:59:20.847935461+01:00 2024-03-20 12:59:20,847 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/modules.json HTTP/1.1" 200 349
2024-03-20T13:59:20.853066623+01:00 2024-03-20 12:59:20,852 - filelock - DEBUG - Attempting to release lock 140284925752272 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/952a9b81c0bfd99800fabf352f69c7ccd46c5e43.lock
2024-03-20T13:59:20.853175950+01:00 2024-03-20 12:59:20,852 - filelock - DEBUG - Lock 140284925752272 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/952a9b81c0bfd99800fabf352f69c7ccd46c5e43.lock
2024-03-20T13:59:20.991559364+01:00 2024-03-20 12:59:20,991 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config_sentence_transformers.json HTTP/1.1" 200 0
2024-03-20 12:59:20,993 - filelock - DEBUG - Attempting to acquire lock 140284925752272 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fd1b291129c607e5d49799f87cb219b27f98acdf.lock
2024-03-20T13:59:20.993520286+01:00 2024-03-20 12:59:20,993 - filelock - DEBUG - Lock 140284925752272 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fd1b291129c607e5d49799f87cb219b27f98acdf.lock
2024-03-20T13:59:21.140398690+01:00 2024-03-20 12:59:21,138 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config_sentence_transformers.json HTTP/1.1" 200 116
2024-03-20T13:59:21.145766103+01:00 2024-03-20 12:59:21,143 - filelock - DEBUG - Attempting to release lock 140284925752272 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fd1b291129c607e5d49799f87cb219b27f98acdf.lock
2024-03-20T13:59:21.145807419+01:00 2024-03-20 12:59:21,143 - filelock - DEBUG - Lock 140284925752272 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fd1b291129c607e5d49799f87cb219b27f98acdf.lock
2024-03-20T13:59:21.295263329+01:00 2024-03-20 12:59:21,294 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/README.md HTTP/1.1" 200 0
2024-03-20T13:59:21.300298141+01:00 2024-03-20 12:59:21,297 - filelock - DEBUG - Attempting to acquire lock 140284925754240 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/8cfec92309f5626a223304af2423e332f6d31887.lock
2024-03-20T13:59:21.300340496+01:00 2024-03-20 12:59:21,297 - filelock - DEBUG - Lock 140284925754240 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/8cfec92309f5626a223304af2423e332f6d31887.lock
2024-03-20T13:59:21.454645461+01:00 2024-03-20 12:59:21,454 - urllib3.connectionpool - DEBUG - https://hug
"GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/README.md HTTP/1.1" 200 10659
2024-03-20T13:59:21.456048845+01:00 2024-03-20 12:59:21,455 - filelock - DEBUG - Attempting to release lock 140284925754240 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/8cfec92309f5626a223304af2423e332f6d31887.lock
2024-03-20T13:59:21.456071958+01:00 2024-03-20 12:59:21,456 - filelock - DEBUG - Lock 140284925754240 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/8cfec92309f5626a223304af2423e332f6d31887.lock
2024-03-20T13:59:21.595677253+01:00 2024-03-20 12:59:21,595 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/modules.json HTTP/1.1" 200 0
2024-03-20T13:59:21.740389903+01:00 2024-03-20 12:59:21,739 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/sentence_bert_config.json HTTP/1.1" 200 0
2024-03-20T13:59:21.742346483+01:00 2024-03-20 12:59:21,742 - filelock - DEBUG - Attempting to acquire lock 140284925753664 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/59d594003bf59880a884c574bf88ef7555bb0202.lock
2024-03-20T13:59:21.742642121+01:00 2024-03-20 12:59:21,742 - filelock - DEBUG - Lock 140284925753664 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/59d594003bf59880a884c574bf88ef7555bb0202.lock
2024-03-20T13:59:21.884612644+01:00 2024-03-20 12:59:21,884 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/sentence_bert_config.json HTTP/1.1" 200 53
2024-03-20T13:59:21.887151850+01:00 2024-03-20 12:59:21,886 - filelock - DEBUG - Attempting to release lock 140284925753664 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/59d594003bf59880a884c574bf88ef7555bb0202.lock
2024-03-20T13:59:21.887176767
+01:00 2024-03-20 12:59:21,887 - filelock - DEBUG - Lock 140284925753664 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/59d594003bf59880a884c574bf88ef7555bb0202.lock
2024-03-20T13:59:22.030081873+01:00 2024-03-20 12:59:22,029 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json HTTP/1.1" 200 0
2024-03-20T13:59:22.032165690+01:00 2024-03-20 12:59:22,031 - filelock - DEBUG - Attempting to acquire lock 140284925750592 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/72b987fd805cfa2b58c4c8c952b274a11bfd5a00.lock
2024-03-20T13:59:22.032670712+01:00 2024-03-20 12:59:22,032 - filelock - DEBUG - Lock 140284925750592 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/72b987fd805cfa2b58c4c8c952b274a11bfd5a00.lock
2024-03-20T13:59:22.170447481+01:00 2024-03-20 12:59:22,170 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json HTTP/1.1" 200 612
2024-03-20T13:59:22.172139211+01:00 2024-03-20 12:59:22,172 - filelock - DEBUG - Attempting to release lock 140284925750592 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/72b987fd805cfa2b58c4c8c952b274a11bfd5a00.lock
2024-03-20T13:59:22.172157315+01:00 2024-03-20 12:59:22,172 - filelock - DEBUG - Lock 140284925750592 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/72b987fd805cfa2b58c4c8c952b274a11bfd5a00.lock
2024-03-20T13:59:22.549959923+01:00 2024-03-20 12:59:22,549 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/model.safetensors HTTP/1.1" 404 0
2024-03-20T13:59:22.702891631+01:00 2024-03-20 12:59:22,702 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/model.safetensor
s.index.json HTTP/1.1" 404 0
2024-03-20T13:59:22.853062781+01:00 2024-03-20 12:59:22,852 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/pytorch_model.bin HTTP/1.1" 302 0
2024-03-20T13:59:22.855561073+01:00 2024-03-20 12:59:22,855 - filelock - DEBUG - Attempting to acquire lock 140284926116912 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:59:22.855944944+01:00 2024-03-20 12:59:22,855 - filelock - DEBUG - Lock 140284926116912 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:59:22.861075799+01:00 2024-03-20 12:59:22,860 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): cdn-lfs.huggingface.co:443
2024-03-20T13:59:23.071099992+01:00 2024-03-20 12:59:23,070 - urllib3.connectionpool - DEBUG - https://cdn-lfs.huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27pytorch_model.bin%3B+filename%3D%22pytorch_model.bin%22%3B&response-content-type=application%2Foctet-stream&Expires=1711198612&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcxMTE5ODYxMn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy5odWdnaW5nZmFjZS5jby9zZW50ZW5jZS10cmFuc2Zvcm1lcnMvYWxsLU1pbmlMTS1MNi12Mi9jM2E4NWYyMzg3MTE2NTM5NTBmNmE3OWVjZTYzZWIwZWE5M2Q3NmY2YTYyODRiZTA0MDE5YzUzNzMzYmFmMjU2P3Jlc3BvbnNlLWNvbnRlbnQtZGlzcG9zaXRpb249KiZyZXNwb25zZS1jb250ZW50LXR5cGU9KiJ9XX0_&Signature=xnKzfd6XZlPDp3JPPXj6a96oGRIsk6EbtcPLk3JNMH5ue0ZWkXTFbEZVSobrEENJIgItMfxdyDcWkGAUHBEaGIxvElnHxVcl8LenUVmIzckQ1zIpWCvCwIfA8y2aB3umAA7Ef7oEkZr98t85VRnOZfunJ9pD5J-A-~jkitCVvzHB8l22A5KHD~eziCU8XWtt-ljAnH53LWCBCCbgFT2784JYrsxA9GyC1CEWfqdp1Md8n5qzvmelAYfGvvWc99T4IV~-ixGfJTHri6W-V6T
Z6R1v~YHLTVpS23W3JIIXM99JTn0byTk5URbFisCS~q7q-4PIRConaXCpUujgs6kJvQ__&Key-Pair-Id=KVTP0A1DKRTAX HTTP/1.1" 200 90888945
2024-03-20T13:59:24.251832137+01:00 2024-03-20 12:59:24,251 - filelock - DEBUG - Attempting to release lock 140284926116912 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:59:24.251856952+01:00 2024-03-20 12:59:24,251 - filelock - DEBUG - Lock 140284926116912 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c3a85f238711653950f6a79ece63eb0ea93d76f6a6284be04019c53733baf256.lock
2024-03-20T13:59:24.489317050+01:00 2024-03-20 12:59:24,488 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer_config.json HTTP/1.1" 200 0
2024-03-20T13:59:24.491320849+01:00 2024-03-20 12:59:24,491 - filelock - DEBUG - Attempting to acquire lock 140284910150048 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:59:24.491667736+01:00 2024-03-20 12:59:24,491 - filelock - DEBUG - Lock 140284910150048 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:59:24.635122984+01:00 2024-03-20 12:59:24,634 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer_config.json HTTP/1.1" 200 350
2024-03-20T13:59:24.637089553+01:00 2024-03-20 12:59:24,636 - filelock - DEBUG - Attempting to release lock 140284910150048 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:59:24.637184950+01:00 2024-03-20 12:59:24,637 - filelock - DEBUG - Lock 140284910150048 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--al
l-MiniLM-L6-v2/c79f2b6a0cea6f4b564fed1938984bace9d30ff0.lock
2024-03-20T13:59:24.786826395+01:00 2024-03-20 12:59:24,786 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/vocab.txt HTTP/1.1" 200 0
2024-03-20T13:59:24.789287860+01:00 2024-03-20 12:59:24,789 - filelock - DEBUG - Attempting to acquire lock 140284907805840 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:59:24.789806033+01:00 2024-03-20 12:59:24,789 - filelock - DEBUG - Lock 140284907805840 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:59:25.013929427+01:00 2024-03-20 12:59:25,012 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/vocab.txt HTTP/1.1" 200 231508
2024-03-20T13:59:25.225374339+01:00 2024-03-20 12:59:25,224 - filelock - DEBUG - Attempting to release lock 140284907805840 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:59:25.225802380+01:00 2024-03-20 12:59:25,225 - filelock - DEBUG - Lock 140284907805840 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/fb140275c155a9c7c5a3b3e0e77a9e839594a938.lock
2024-03-20T13:59:25.369123248+01:00 2024-03-20 12:59:25,368 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json HTTP/1.1" 200 0
2024-03-20T13:59:25.371538892+01:00 2024-03-20 12:59:25,371 - filelock - DEBUG - Attempting to acquire lock 140284907805840 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:59:25.371811274+01:00 2024-03-20 12:59:25,371 - filelock - DEBUG - Lock 140284907805
acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:59:25.516580557+01:00 2024-03-20 12:59:25,516 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json HTTP/1.1" 200 466247
2024-03-20T13:59:25.817142665+01:00 2024-03-20 12:59:25,816 - filelock - DEBUG - Attempting to release lock 140284907805840 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:59:25.817191981+01:00 2024-03-20 12:59:25,817 - filelock - DEBUG - Lock 140284907805840 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/cb202bfe2e3c98645018a6d12f182a434c9d3e02.lock
2024-03-20T13:59:25.957091077+01:00 2024-03-20 12:59:25,956 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/added_tokens.json HTTP/1.1" 404 0
2024-03-20T13:59:26.102184422+01:00 2024-03-20 12:59:26,101 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/main/special_tokens_map.json HTTP/1.1" 200 0
2024-03-20T13:59:26.103691212+01:00 2024-03-20 12:59:26,103 - filelock - DEBUG - Attempting to acquire lock 140284907806512 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:59:26.103989244+01:00 2024-03-20 12:59:26,103 - filelock - DEBUG - Lock 140284907806512 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:59:26.239670342+01:00 2024-03-20 12:59:26,239 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/main/special_tokens_map.json HTTP/1.1" 200 112
2024-03-20T13:59:26.242196
623+01:00 2024-03-20 12:59:26,241 - filelock - DEBUG - Attempting to release lock 140284907806512 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:59:26.242309776+01:00 2024-03-20 12:59:26,242 - filelock - DEBUG - Lock 140284907806512 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/e7b0375001f109a6b8873d756ad4f7bbb15fbaa5.lock
2024-03-20T13:59:26.595836625+01:00 2024-03-20 12:59:26,595 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /api/models/sentence-transformers/all-MiniLM-L6-v2/revision/main HTTP/1.1" 200 18462
2024-03-20T13:59:26.612418508+01:00 2024-03-20 12:59:26,612 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): huggingface.co:443
2024-03-20T13:59:26.849652836+01:00 2024-03-20 12:59:26,849 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "HEAD /sentence-transformers/all-MiniLM-L6-v2/resolve/44eb4044493a3c34bc6d7faae1a71ec76665ebc6/1_Pooling/config.json HTTP/1.1" 200 0
2024-03-20T13:59:26.851460260+01:00 2024-03-20 12:59:26,851 - filelock - DEBUG - Attempting to acquire lock 140284701055904 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:59:26.851814608+01:00 2024-03-20 12:59:26,851 - filelock - DEBUG - Lock 140284701055904 acquired on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:59:26.997594504+01:00 2024-03-20 12:59:26,997 - urllib3.connectionpool - DEBUG - https://huggingface.co:443 "GET /sentence-transformers/all-MiniLM-L6-v2/resolve/44eb4044493a3c34bc6d7faae1a71ec76665ebc6/1_Pooling/config.json HTTP/1.1" 200 190
2024-03-20T13:59:27.000086426+01:00 2024-03-20 12:59:26,999 - filelock - DEBUG - Attempting to release lock 140284701055904 on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-Mi
niLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:59:27.003045307+01:00 2024-03-20 12:59:26,999 - filelock - DEBUG - Lock 140284701055904 released on /root/.cache/huggingface/hub/.locks/models--sentence-transformers--all-MiniLM-L6-v2/d1514c3162bbe87b343f565fadc62e6c06f04f03.lock
2024-03-20T13:59:27.003075516+01:00 2024-03-20 12:59:27,001 - sentence_transformers.SentenceTransformer - INFO - Use pytorch device_name: cpu
2024-03-20T13:59:27.004974719+01:00 2024-03-20 12:59:27,004 - root - INFO - Initialized embeddings of type: <class 'langchain_community.embeddings.huggingface.HuggingFaceEmbeddings'>
2024-03-20T14:01:37.680650095+01:00 Traceback (most recent call last):
2024-03-20T14:01:37.680689389+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
2024-03-20T14:01:37.680695498+01:00     self._dbapi_connection = engine.raw_connection()
2024-03-20T14:01:37.680698793+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3303, in raw_connection
2024-03-20T14:01:37.680702240+01:00     return self.pool.connect()
2024-03-20T14:01:37.680705741+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 449, in connect
2024-03-20T14:01:37.680709240+01:00     return _ConnectionFairy._checkout(self)
2024-03-20T14:01:37.680712154+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout
2024-03-20T14:01:37.680730003+01:00     fairy = _ConnectionRecord.checkout(pool)
2024-03-20T14:01:37.680733532+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
2024-03-20T14:01:37.680736681+01:00     rec = pool._do_get()
2024-03-20T14:01:37.680739449+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
2024-03-20T14:01:37.680742178+01:00     with util.safe_reraise():
2024-03-20T14:01:37.680744915+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/lang
helpers.py", line 146, in __exit__
2024-03-20T14:01:37.680747740+01:00     raise exc_value.with_traceback(exc_tb)
2024-03-20T14:01:37.680750405+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
2024-03-20T14:01:37.680753079+01:00     return self._create_connection()
2024-03-20T14:01:37.680755761+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
2024-03-20T14:01:37.680758420+01:00     return _ConnectionRecord(self)
2024-03-20T14:01:37.680761071+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 674, in __init__
2024-03-20T14:01:37.680763743+01:00     self.__connect()
2024-03-20T14:01:37.680766378+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
2024-03-20T14:01:37.680769110+01:00     with util.safe_reraise():
2024-03-20T14:01:37.680771847+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
2024-03-20T14:01:37.680774527+01:00     raise exc_value.with_traceback(exc_tb)
2024-03-20T14:01:37.680778058+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
2024-03-20T14:01:37.680781048+01:00     self.dbapi_connection = connection = pool._invoke_creator(self)
2024-03-20T14:01:37.680783894+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 643, in connect
2024-03-20T14:01:37.680786672+01:00     return dialect.connect(*cargs, **cparams)
2024-03-20T14:01:37.680789355+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 616, in connect
2024-03-20T14:01:37.680792115+01:00     return self.loaded_dbapi.connect(*cargs, **cparams)
2024-03-20T14:01:37.680794808+01:00   File "/usr/local/lib/python3.10/site-packages/psycopg2/__init__.py", line 122, in connect
2024-03-20T14:01:37.680797441+01:00     conn = _connect(dsn, connection_factory=connection_factory, *
*kwasync)
2024-03-20T14:01:37.680800561+01:00 psycopg2.OperationalError: connection to server at "rag-api-svc" (10.43.171.89), port 5432 failed: Connection timed out
2024-03-20T14:01:37.680803198+01:00 	Is the server running on that host and accepting TCP/IP connections?
2024-03-20T14:01:37.680805738+01:00 
2024-03-20T14:01:37.680808286+01:00 
2024-03-20T14:01:37.680810961+01:00 The above exception was the direct cause of the following exception:
2024-03-20T14:01:37.680813586+01:00 
2024-03-20T14:01:37.680816323+01:00 Traceback (most recent call last):
2024-03-20T14:01:37.680819638+01:00   File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 253, in create_vector_extension
2024-03-20T14:01:37.680822519+01:00     session.execute(statement)
2024-03-20T14:01:37.680825319+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2306, in execute
2024-03-20T14:01:37.680828352+01:00     return self._execute_internal(
2024-03-20T14:01:37.680831136+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2181, in _execute_internal
2024-03-20T14:01:37.680838833+01:00     conn = self._connection_for_bind(bind)
2024-03-20T14:01:37.680842019+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2050, in _connection_for_bind
2024-03-20T14:01:37.680844959+01:00     return trans._connection_for_bind(engine, execution_options)
2024-03-20T14:01:37.680847847+01:00   File "<string>", line 2, in _connection_for_bind
2024-03-20T14:01:37.680850608+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
2024-03-20T14:01:37.680853350+01:00     ret_value = fn(self, *arg, **kw)
2024-03-20T14:01:37.680856193+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 1144, in _connection_for_bind
2024-03-20T14:01:37.680862667+01:00     conn = bind.connect()
2024-03-20T14:01:37.680866420+01:00   File "/usr/local/lib/python3.10/site
-packages/sqlalchemy/engine/base.py", line 3279, in connect
2024-03-20T14:01:37.680869389+01:00     return self._connection_cls(self)
2024-03-20T14:01:37.680872211+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 147, in __init__
2024-03-20T14:01:37.680874933+01:00     Connection._handle_dbapi_exception_noconnection(
2024-03-20T14:01:37.680877545+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2443, in _handle_dbapi_exception_noconnection
2024-03-20T14:01:37.680880180+01:00     raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
2024-03-20T14:01:37.680895549+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
2024-03-20T14:01:37.680901858+01:00     self._dbapi_connection = engine.raw_connection()
2024-03-20T14:01:37.680904938+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3303, in raw_connection
2024-03-20T14:01:37.680907682+01:00     return self.pool.connect()
2024-03-20T14:01:37.680910326+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 449, in connect
2024-03-20T14:01:37.680913075+01:00     return _ConnectionFairy._checkout(self)
2024-03-20T14:01:37.680915880+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout
2024-03-20T14:01:37.680918622+01:00     fairy = _ConnectionRecord.checkout(pool)
2024-03-20T14:01:37.680921308+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
2024-03-20T14:01:37.680924074+01:00     rec = pool._do_get()
2024-03-20T14:01:37.680926870+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
2024-03-20T14:01:37.680929711+01:00     with util.safe_reraise():
2024-03-20T14:01:37.680932398+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
2024-03-20T14:01:37.680935049+01:00     
raise exc_value.with_traceback(exc_tb)
2024-03-20T14:01:37.680937755+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
2024-03-20T14:01:37.680940416+01:00     return self._create_connection()
2024-03-20T14:01:37.680943060+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
2024-03-20T14:01:37.680945757+01:00     return _ConnectionRecord(self)
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 674, in __init__
2024-03-20T14:01:37.680951529+01:00     self.__connect()
2024-03-20T14:01:37.680954406+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
2024-03-20T14:01:37.680962450+01:00     with util.safe_reraise():
2024-03-20T14:01:37.680965615+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
2024-03-20T14:01:37.680968321+01:00     raise exc_value.with_traceback(exc_tb)
2024-03-20T14:01:37.680971154+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
2024-03-20T14:01:37.680973925+01:00     self.dbapi_connection = connection = pool._invoke_creator(self)
2024-03-20T14:01:37.680976818+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 643, in connect
2024-03-20T14:01:37.680979545+01:00     return dialect.connect(*cargs, **cparams)
2024-03-20T14:01:37.680982258+01:00   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 616, in connect
2024-03-20T14:01:37.680985184+01:00     return self.loaded_dbapi.connect(*cargs, **cparams)
2024-03-20T14:01:37.680988060+01:00   File "/usr/local/lib/python3.10/site-packages/psycopg2/__init__.py", line 122, in connect
2024-03-20T14:01:37.680990909+01:00     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
2024-03-20T14:01:37.680994568+01:00 sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "rag-api-svc" (10.43.171.89), port 5432 failed: Connection timed out
2024-03-20T14:01:37.680997378+01:00 	Is the server running on that host and accepting TCP/IP connections?
2024-03-20T14:01:37.681000047+01:00 
2024-03-20T14:01:37.681002880+01:00 (Background on this error at: https://sqlalche.me/e/20/e3q8)
2024-03-20T14:01:37.681005437+01:00 
2024-03-20T14:01:37.681008200+01:00 The above exceptio
n was the direct cause of the following exception:
2024-03-20T14:01:37.681010709+01:00 
2024-03-20T14:01:37.681013453+01:00 Traceback (most recent call last):
2024-03-20T14:01:37.681016325+01:00   File "/usr/local/bin/uvicorn", line 8, in <module>
2024-03-20T14:01:37.681019299+01:00     sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
2024-03-20T14:01:37.681024992+01:00     return self.main(*args, **kwargs)
2024-03-20T14:01:37.681029698+01:00   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main
2024-03-20T14:01:37.681032843+01:00     rv = self.invoke(ctx)
2024-03-20T14:01:37.681035693+01:00   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
2024-03-20T14:01:37.681038413+01:00     return ctx.invoke(self.callback, **ctx.params)
2024-03-20T14:01:37.681041078+01:00   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
2024-03-20T14:01:37.681043750+01:00     return __callback(*args, **kwargs)
2024-03-20T14:01:37.681046599+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/main.py", line 409, in main
    run(
2024-03-20T14:01:37.681052175+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/main.py", line 575, in run
2024-03-20T14:01:37.681054973+01:00     server.run()
2024-03-20T14:01:37.681057710+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 62, in run
2024-03-20T14:01:37.681060378+01:00     return asyncio.run(self.serve(sockets=sockets))
2024-03-20T14:01:37.681063086+01:00   File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
2024-03-20T14:01:37.681065880+01:00     return loop.run_until_complete(main)
2024-03-20T14:01:37.681068680+01:00   File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
2024-03-20T14:01:37.681071597+01:00     return future.result()
2024-03-20T14:01:37.681078721+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 69, in serve
2024-03-20T14:01:37.681081607+01:00     config.load()
2024-03-20T14:01:37.681084505+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/config.py", line 433, in load
2024-03-20T14:01:37.681087236+01:00     self.loaded_app = import_from_string(self.app)
2024-03-20T14:01:37.681099505+01:00   File "/usr/local/lib/python3.10/site-packages/uvicorn/importer.py", line 19, in import_from_string
2024-03-20T14:01:37.681103981+01:00     module = importlib.import_module(module_str)
2024-03-20T14:01:37.681106864+01:00   File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
2024-03-20T14:01:37.681109672+01:00     return _bootstrap._gcd_import(name[level:], package, level)
2024-03-20T14:01:37.681112456+01:00   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2024-03-20T14:01:37.681115240+01:00   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2024-03-20T14:01:37.681118185+01:00   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
2024-03-20T14:01:37.681121031+01:00   File "<frozen importlib._bootstrap>", line 688, in _load_unloc
ked
2024-03-20T14:01:37.681123896+01:00   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
2024-03-20T14:01:37.681126992+01:00   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2024-03-20T14:01:37.681129906+01:00   File "/app/main.py", line 25, in <module>
2024-03-20T14:01:37.681132703+01:00     from psql import PSQLDatabase, ensure_custom_id_index_on_embedding
2024-03-20T14:01:37.681135447+01:00   File "/app/psql.py", line 3, in <module>
2024-03-20T14:01:37.681138197+01:00     from config import DSN, logger
2024-03-20T14:01:37.681140950+01:00   File "/app/config.py", line 85, in <module>
2024-03-20T14:01:37.681144021+01:00     vector_store = get_vector_store(
2024-03-20T14:01:37.681146859+01:00   File "/app/store_factory.py", line 19, in get_vector_store
2024-03-20T14:01:37.681149822+01:00     return AsyncPgVector(
2024-03-20T14:01:37.681153190+01:00   File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 212, in __init__
    self.__post_init__()
2024-03-20T14:01:37.681158893+01:00   File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 218, in __post_init__
2024-03-20T14:01:37.681162364+01:00     self.create_vector_extension()
2024-03-20T14:01:37.681165286+01:00   File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 256, in create_vector_extension
2024-03-20T14:01:37.681168103+01:00     raise Exception(f"Failed to create vector extension: {e}") from e
Exception: Failed to create vector extension: (psycopg2.OperationalError) connection to server at "rag-api-svc" (10.43.171.89), port 5432 failed: Connection timed out
2024-03-20T14:01:37.681174258+01:00 	Is the server running on that host and accepting TCP/IP connections?
2024-03-20T14:01:37.681176992+01:00 
2024-03-20T14:01:37.681180039+01:00 (Background on this error at: https://sqlalche.me/e/20/e3q8)

@danny-avila
Copy link
Owner Author

multiples restart

Happens when the API can't access the PSQL/pgvector db. note that rag.yml compose file has some hardcoded values, you may need to edit this.

@delta-whiplash
Copy link

I FOUND IT !!!!
I was calling the wrong dns for my db now it's working

now I have new logs :

2024-03-20T14:27:13.470064980+01:00 INFO:     Application startup complete.
2024-03-20T14:27:13.470295636+01:00 INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     10.42.1.0:29962 - "GET /docs HTTP/1.1" 200 OK
INFO:     10.42.1.0:29962 - "GET /openapi.json HTTP/1.1" 200 OK
2024-03-20 13:27:41,458 - root - DEBUG - /embed - {'id': '65cf3a50152f4a14ce5658f7', 'username': 'deltawhiplash', 'provider': 'local', 'email': 'myemail@mail', 'iat': 1710941179, 'exp': 1710942079}
INFO:     10.42.0.241:52566 - "POST /embed HTTP/1.1" 404 Not Found

@danny-avila
Copy link
Owner Author

I FOUND IT !!!! I was calling the wrong dns for my db now it's working

now I have new logs :

2024-03-20T14:27:13.470064980+01:00 INFO:     Application startup complete.
2024-03-20T14:27:13.470295636+01:00 INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     10.42.1.0:29962 - "GET /docs HTTP/1.1" 200 OK
INFO:     10.42.1.0:29962 - "GET /openapi.json HTTP/1.1" 200 OK
2024-03-20 13:27:41,458 - root - DEBUG - /embed - {'id': '65cf3a50152f4a14ce5658f7', 'username': 'deltawhiplash', 'provider': 'local', 'email': 'myemail@mail', 'iat': 1710941179, 'exp': 1710942079}
INFO:     10.42.0.241:52566 - "POST /embed HTTP/1.1" 404 Not Found

Thanks will look into it. I ask that you start a discussion here for further help as I'm locking this PR as merged.

Repository owner locked as resolved and limited conversation to collaborators Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants