await PGVectorStore throws an ts(1378) error.
Labels: name: area: vector store, name: auto:bug

### System Info

MacOS, PGVector, TypeScript, NodeJS.

### Who can help?

_No response_

### Information

- [X] The official example notebooks/scripts
- [ ] My own modified scripts

### Related Components

- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async

### Reproduction

Hey! 

I have been trying to reproduce the langchain's pgvector official documentation without success. For some reason when I try to use async await around PGVector it throws an error.

`const pgvectorStore = await PGVectorStore.initialize(
  new OpenAIEmbeddings(),
  config
);`

This is the official documentation.

`export const pgvectorStore = await PGVectorStore.initialize(
    new OpenAIEmbeddings(),
    config
);`

This is my version. 

I'm using TypeScript and it recommends to change both module and target versions inside compilerOptions, **done both without success.**

`Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.ts(1378)`

This is the output if I try to run the code:

`node:internal/process/esm_loader:108
    internalBinding('errors').triggerUncaughtException(
                              ^

Error: Transform failed with 1 error:
/Users/diogo/Documents/www/ai-api/src/store.ts:34:29: ERROR: Top-level await is currently not supported with the "cjs" output format
    at failureErrorWithLog (/Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:1649:15)
    at /Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:847:29
    at responseCallbacks.<computed> (/Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:703:9)
    at handleIncomingPacket (/Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:762:9)
    at Socket.readFromStdout (/Users/diogo/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:679:7)
    at Socket.emit (node:events:517:28)
    at addChunk (node:internal/streams/readable:335:12)
    at readableAddChunk (node:internal/streams/readable:308:9)
    at Readable.push (node:internal/streams/readable:245:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
  errors: [
    {
      detail: undefined,
      id: '',
      location: {
        column: 29,
        file: '/Users/diogo/Documents/www/ai-api/src/store.ts',
        length: 5,
        line: 34,
        lineText: 'export const pgvectorStore = await PGVectorStore.initialize(',
        namespace: '',
        suggestion: ''
      },
      notes: [],
      pluginName: '',
      text: 'Top-level await is currently not supported with the "cjs" output format'
    }
  ],
  warnings: []
}_`



Would appreciate any help.



### Expected behavior

It should not throw an error.