You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to import PGVectorStore from the llamaindex package in a Next.js project, an error occurs indicating that PGVectorStore is not exported from llamaindex. I have tried various Node.js versions (v18 and v20) using nvm, and this issue persists across the last 8 releases of llamaindex. The bug blocks the ability to use PGVectorStore despite it being referenced in other examples and documentation.
To Reproduce
Code to reproduce the behavior:
import{PGVectorStore}from'llamaindex';// Expected behavior: no import error and successful instantiation of PGVectorStore// Actual behavior: "Attempted import error: 'PGVectorStore' is not exported from 'llamaindex'"
Expected behavior
I expected PGVectorStore to be exported from llamaindex, allowing it to be imported and used as part of my Next.js project, as referenced in example code found in the documentation.
Screenshots
Not applicable for this issue.
Desktop (please complete the following information):
OS: macOS Ventura 13.4.1
JS Runtime / Framework / Bundler (select all applicable)
Node.js
Deno
Bun
Next.js
ESBuild
Rollup
Webpack
Turbopack
Vite
Waku
Edge Runtime
AWS Lambda
Cloudflare Worker
Others (please elaborate on this)
Version: Node v18.20.4 and v20 (via nvm), Next.js v13.4.5
Additional context
I have tested this on both Node.js v18 and v20 (using nvm) across multiple releases of llamaindex (the last 8 versions). The error persists regardless of the version, preventing usage of PGVectorStore. I have also explored submodule imports, but none of them work. Other vector stores like PostgresDocumentStore work fine, but I specifically need the functionality provided by PGVectorStore.
The text was updated successfully, but these errors were encountered:
@Djmcflush as @himself65 mentions you better should use import { PGVectorStore } from "llamaindex/vector-store" as we don't export vector stores to root for edge run-times.
We're moving now the vector store implementations to each package to avoid confusion, see #1587
Describe the bug
When attempting to import
PGVectorStore
from thellamaindex
package in a Next.js project, an error occurs indicating thatPGVectorStore
is not exported fromllamaindex
. I have tried various Node.js versions (v18 and v20) usingnvm
, and this issue persists across the last 8 releases ofllamaindex
. The bug blocks the ability to usePGVectorStore
despite it being referenced in other examples and documentation.To Reproduce
Code to reproduce the behavior:
Expected behavior
I expected
PGVectorStore
to be exported fromllamaindex
, allowing it to be imported and used as part of my Next.js project, as referenced in example code found in the documentation.Screenshots
Not applicable for this issue.
Desktop (please complete the following information):
Additional context
I have tested this on both Node.js v18 and v20 (using
nvm
) across multiple releases ofllamaindex
(the last 8 versions). The error persists regardless of the version, preventing usage ofPGVectorStore
. I have also explored submodule imports, but none of them work. Other vector stores likePostgresDocumentStore
work fine, but I specifically need the functionality provided byPGVectorStore
.The text was updated successfully, but these errors were encountered: