{"id":23338254,"url":"https://github.com/abhirockzz/langchain-go-postgresql-vectorstore","last_synced_at":"2025-10-25T04:31:26.063Z","repository":{"id":197920750,"uuid":"699654165","full_name":"abhirockzz/langchain-go-postgresql-vectorstore","owner":"abhirockzz","description":"langchain Vector Store implementation based for PostgreSQL pgvector","archived":false,"fork":false,"pushed_at":"2023-10-06T10:34:11.000Z","size":25,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T00:24:26.213Z","etag":null,"topics":["generative-ai","golang","langchain","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhirockzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-10-03T04:18:49.000Z","updated_at":"2024-07-23T07:42:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"75c39e02-85c5-4e1b-b3c8-585b5d3b6176","html_url":"https://github.com/abhirockzz/langchain-go-postgresql-vectorstore","commit_stats":null,"previous_names":["abhirockzz/langchain-go-postgresql-vectorstore"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Flangchain-go-postgresql-vectorstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Flangchain-go-postgresql-vectorstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Flangchain-go-postgresql-vectorstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Flangchain-go-postgresql-vectorstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhirockzz","download_url":"https://codeload.github.com/abhirockzz/langchain-go-postgresql-vectorstore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123309,"owners_count":21051442,"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","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":["generative-ai","golang","langchain","postgresql"],"created_at":"2024-12-21T03:13:24.398Z","updated_at":"2025-10-25T04:31:26.017Z","avatar_url":"https://github.com/abhirockzz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Vector Database implementation for LangChain Go\n\n[langchaingo](https://github.com/tmc/langchaingo) extension to use [pgvector](https://github.com/pgvector/pgvector) as a vector database for your Go applications. It uses the [pgvector-go](https://github.com/pgvector/pgvector-go) library along with [pgx](https://github.com/jackc/pgx) driver.\n\nYou can use this in your LangChain applications as a standalone vector database or more likely, as part of a chain. For example, in a RAG implementation:\n\n```go\n    import(\n        \"github.com/abhirockzz/langchain-go-postgresql-vectorstore/pgvector\"\n         //...\n    )\n    func ragToRiches(){\n        \n        bedrockClaudeLLM, err := claude.New(\"us-east-1\")\n\n        tableName := \"test_table\"\n        textColumnName := \"text_data\"\n        embeddingStoreColumnName := \"embedding_data\"\n\n        amazonTitanEmbedder, err := titan_embedding.New(\"us-east-1\")\n\n        pgVectorStore, err := pgvector.New(pgConnString, \n                                        tableName, \n                                        embeddingStoreColumnName, \n                                        textColumnName, \n                                        false, \n                                        amazonTitanEmbedder)\n\n        result, err := chains.Run(\n            context.Background(),\n            chains.NewRetrievalQAFromLLM(\n                bedrockClaudeLLM,\n                vectorstores.ToRetriever(pgVectorStore, numOfResults),\n            ),\n            question,\n            chains.WithMaxTokens(8091),\n        )\n    }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Flangchain-go-postgresql-vectorstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhirockzz%2Flangchain-go-postgresql-vectorstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Flangchain-go-postgresql-vectorstore/lists"}