Azure-Samples / Azure-Samples/llama-index-vector-search-javascript

The Code is not working ....

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15
Forks
6
Avg merge
5d 20h
Merged PRs (30d)
1

Description

When ever the code is executed different error are coming.. Just attached one error ....also llamaindex version mentioned in the package. Json is not working ..Even though i upgrade it still the code is not working.

Kindly check the issue...

Details :

Using OpenAI API key for authentication
{nom' is not recognized as an internal or external command,
openAiConfig: {or batch file.
apiKey: '846qPtPwIEjmsAxiMPar8c8CaWNF76I45F3oczobPitvpTWMVGHLJQQJ99BDAC77bzfXJ3w3AAABACOGJnUP'
}Personal\llama-index-vector-search-javascript>npm run generate
}
Initializing Azure AI Search Vector Store.0 generate
(node:4980) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
D:\Personal\llama-index-vector-search-javascript\app\api\chat\engine\settings.ts:126
new AzureAISearchVectorStore({
^

TypeError: import_llamaindex.AzureAISearchVectorStore is not a constructor
at initSettings (D:\Personal\llama-index-vector-search-javascript\app\api\chat\engine\settings.ts:126:5)
at (D:\Personal\llama-index-vector-search-javascript\app\api\chat\engine\generate.ts:39:9)
at (D:\Personal\llama-index-vector-search-javascript\app\api\chat\engine\generate.ts:42:1)
at Object. (D:\Personal\llama-index-vector-search-javascript\app\api\chat\engine\generate.ts:42:4)
at Module._compile (node:internal/modules/cjs/loader:1546:14)
at Object.transformer (D:\Personal\llama-index-vector-search-javascript\node_modules\tsx\dist\register-DCnOAxY2.cjs:2:1186)
at Module.load (node:internal/modules/cjs/loader:1317:32)
at Module._load (node:internal/modules/cjs/loader:1127:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.