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
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When running 'npm run dev' command in the chatbot-demo project, a "Module not found" error occurs in the file src/pages/api/chat.ts at line 15. The import statement import { Metadata, getMatchesFromEmbeddings } from './embeddings' fails to resolve the './embeddings' module.
Expected Behavior
The import statement should successfully resolve the './embeddings' module and no "Module not found" error should occur.
Steps To Reproduce
Clone the chatbot-demo project from the Pinecone repository.
Run 'npm install' to install dependencies.
Run 'npm run dev' command to start the development server.
Relevant log output
error - ./src/pages/api/chat.ts:15:0
Module not found: Can't resolve './embeddings' 13 | 14 | import { ConversationLog } from './conversationLog';> 15 | import { Metadata, getMatchesFromEmbeddings } from './embeddings'; 16 | import { templates } from './templates'; 17 | 18 |
Environment
-**OS**: Darwin Kernel Version 21.6.0
-**Language version**: node v19.8.1
-**Pinecone client version**:
Additional Context
No response
The text was updated successfully, but these errors were encountered:
as mentioned by another reply, you need to change on the file src\pages\api\chat.ts this:
import { Metadata, getMatchesFromEmbeddings } from './embeddings';
to...
import { Metadata, getMatchesFromEmbeddings } from './matches';
Is this a new bug?
Current Behavior
When running 'npm run dev' command in the chatbot-demo project, a "Module not found" error occurs in the file src/pages/api/chat.ts at line 15. The import statement import { Metadata, getMatchesFromEmbeddings } from './embeddings' fails to resolve the './embeddings' module.
Expected Behavior
The import statement should successfully resolve the './embeddings' module and no "Module not found" error should occur.
Steps To Reproduce
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: