{"id":23973441,"url":"https://github.com/ammarsaf/llm_rag_pgvector","last_synced_at":"2026-05-18T00:06:39.058Z","repository":{"id":221455222,"uuid":"754429505","full_name":"ammarsaf/llm_rag_pgvector","owner":"ammarsaf","description":"Implementing pgVector as vector database on top of PostgreSQL, use it as retriever and pass it to LLM as RAG.","archived":false,"fork":false,"pushed_at":"2024-06-30T02:08:26.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T15:58:16.757Z","etag":null,"topics":["llm","pgvector","rag"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ammarsaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-08T02:59:51.000Z","updated_at":"2024-08-11T09:41:50.000Z","dependencies_parsed_at":"2024-09-15T10:03:51.902Z","dependency_job_id":"afeade99-3a18-4634-a17d-3381eafae41c","html_url":"https://github.com/ammarsaf/llm_rag_pgvector","commit_stats":null,"previous_names":["ammar-azman/llm_rag_e2e_pgvector","ammarsaf/llm_rag_pgvector","ammar-azman/llm_rag_pgvector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ammarsaf/llm_rag_pgvector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarsaf%2Fllm_rag_pgvector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarsaf%2Fllm_rag_pgvector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarsaf%2Fllm_rag_pgvector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarsaf%2Fllm_rag_pgvector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammarsaf","download_url":"https://codeload.github.com/ammarsaf/llm_rag_pgvector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarsaf%2Fllm_rag_pgvector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267133958,"owners_count":24040789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llm","pgvector","rag"],"created_at":"2025-01-07T04:58:06.046Z","updated_at":"2026-05-18T00:06:29.551Z","avatar_url":"https://github.com/ammarsaf.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n- Implementing pgVector as vector database on top of PostgreSQL, use it as retriever and pass it to LLM as RAG.\n\n# Pre-requisite\n- Docker: To pull pgvector, postgresql and pgadmin interface images from DockerHub and run it, setup vector database and serve as retriever.\n- OpenAI account: To call the LLM api.\n- Memory: 12GB and above. \n\n# Docker Setup\n\n## Compose\n1. `cd` into the project dir. Please ensure the `docker-compose.yml` is exist. \n2. Run \n```\ndocker-compose up\n```\n3. Login PGadmin4 thru http://localhost:82/\n4. Create server group. \n5. Register server\n     - Ensure to check \"IP address\" of `pgvector` container inspect as this is the Hostname to register server. ie `\"IPAddress\": \"172.17.0.3\",`\n     - Connect to the pgvector database server.\n\n# Source\n- https://medium.com/@vishal.sharma./run-postgresql-and-pgadmin-using-docker-compose-34120618bcf9\n- https://www.commandprompt.com/education/how-to-run-postgresql-and-pgadmin-using-docker/\n- https://bugbytes.io/posts/vector-databases-pgvector-and-langchain/\n\n# Todo\n* [x] Create `docker-compose.yml` to run both container at the same time easily.\n* [x] Building multimodal RAG db on PGvector.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammarsaf%2Fllm_rag_pgvector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammarsaf%2Fllm_rag_pgvector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammarsaf%2Fllm_rag_pgvector/lists"}