chatbot-demo's People
Forkers
kuddah joshling1919 rmbrntt dgfx aaronbesson hezuogongying matt-phantasiai appliedi tomchapin loversama albertastabatsyan balawa wdshin fixingpixels maicaiyao43 ali-hussein-dev thisisnarayan robinnagpal mohamedelmdary horas deniska83 fmbento brendanoneill55 spookymargiela007 jamesphillipturpin paulbrough intranetfactory mmanshad blockdev723 to-ai drog-group hoangv97 cirediatpl gustu godoggie amritpalchera webspin cashbeario byteminds-ai jesswillcode ounie iamcharu18 ykimdeveloper roskideluge jungewerther ngdino sohailkh ldc861117 rccnw winterdelta thesocialdiner kriptdumdum khaledalarja tfehren rossman22590 counterflow dragon-rider0111 summitsingh bouchaala-sabri gadsdencode erriccc cravussin stephenzhao gardner 3a1b2c3 samchakwera luqiang4xenera alexbuce shinysylveonn netquery dotahn ranmax123 zeroxclem supabase-community forgottenfrog xiaobingwudi espresso-team josephkirankk zavier-sanders jbuistjbuist kulaneian istooge keritervdeveloping d3287t328 theogbrand inayet jamesljohnson3 zizwar valve tka-developments davincidreams haghdaee silverstory jeanduplessis joshdumoulin brian-backer uneebjaved maplesage anthony-ferraro ocwc22chatbot-demo's Issues
[Bug] Error response from Ably
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When running the app, Pinecone runs first (and works) but then this error appears in terminal:
06:53:33.619 Ably: Auth.requestToken(): token request signing call returned error; err = [ErrorInfo: Error response received from server: 404 body was: <Buffer 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 3e 3c 68 74 6d 6c 20 6c 61 6e 67 3d 22 65 6e 22 3e 3c 68 65 61 64 3e 3c 73 74 79 6c 65 20 64 61 74 61 2d 6e ... 2520 more bytes>] {
code: NaN,
statusCode: 404,
cause: undefined
}
Expected Behavior
Connect to Ably, I guess?
Steps To Reproduce
- Create .env file and fill in all missing keys
- Launch the application with
npm run dev
Relevant log output
No response
Environment
- MacOS
- Python 3.11.1
Additional Context
No response
[Bug] empty visitor id
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
Web browser console output:
Failed to fetch visitor data on mount: FPJSAgentError: Failed to load the JS script of the agent 2 next-dev.js:20:25
visitorData?.visitorId! undefined
Expected Behavior
expected to show visitor id as not undefined
Steps To Reproduce
- npm run dev
- create .env
- fix the import error in chat.tsx
'./embedded'
to './matches' - then we get errors and don't recieve any messages back after we talk to pinecone gpt
![Screenshot 2023-05-17 at 1 07 18 PM](https://private-user-images.githubusercontent.com/88108711/239027118-195622bf-1cdf-47c8-bf59-c808949228af.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MTY2NzQsIm5iZiI6MTcyMTQxNjM3NCwicGF0aCI6Ii84ODEwODcxMS8yMzkwMjcxMTgtMTk1NjIyYmYtMWNkZi00N2M4LWJmNTktYzgwODk0OTIyOGFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE5MTI1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1MjI4ZjA3NWFkNTQ4ODNiYTZkZGFiZmQ2OGMwMzM0MzY5ZGFlZTMwNjA4NmMzZGY3ZmFiYmUzYWJjNGRiMGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Ao-GsPuDz17s2FsGaqBrX7Q2ZDHKiDSbRpOPsYmLrR0)
Relevant log output
Web browser console output:
`Failed to fetch visitor data on mount: FPJSAgentError: Failed to load the JS script of the agent 2 next-dev.js:20:25`
`visitorData?.visitorId! undefined `
Environment
- **OS**: MacOS Firefox
- **Language version**: latest
- **Pinecone client version**: latest
Additional Context
No response
[Bug] SequelizeDatabaseError: there is no unique
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
I have launched the application with everything needed. I have created conversation in cockroachdb and when I launch the application I get the following error:
Error adding entry: SequelizeDatabaseError: there is no unique or exclusion constraint matching the ON CONFLICT specification
Expected Behavior
Have the chatbot answer my questions
Steps To Reproduce
1.Create .env file
2. Launch the application with npm run dev
Relevant log output
No response
Environment
- **OS**:
- **Language version**:
- **Pinecone client version**:
Additional Context
No response
[Feature] Adding LLM memory
Is this your first time submitting a feature request?
- I have searched the existing issues, and I could not find an existing issue for this feature
- I am requesting a straightforward extension of existing functionality
Describe the feature
add LLM memory to chat
const vectorStore = new MemoryVectorStore(new OpenAIEmbeddings());
const memory = new VectorStoreRetrieverMemory({
// 1 is how many documents to return, you might want to return more, eg. 4
vectorStoreRetriever: vectorStore.asRetriever(1),
memoryKey: "history",
});
// Build an LLM chain that will improve the user prompt
const inquiryChain = new LLMChain({
llm,
prompt: new PromptTemplate({
template: templates.inquiryTemplate,
inputVariables: ["userPrompt", "conversationHistory"],
}),
memory: memory,
});
Describe alternatives you've considered
No response
Who will this benefit?
everyone looking at the repository from coming from the article: https://www.pinecone.io/learn/javascript-chatbot/
Are you interested in contributing this feature?
yes would like to contribute :)
Anything else?
No response
[Bug] Module not found error when running 'npm run dev'
Is this a new bug?
- I believe this is a new bug
- 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
[Bug] relation "conversations" does not exist
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When I run the command npm run dev, and redirected to UI, as I entered the text in textbox I am getting this error at backend terminal -
name: 'SequelizeDatabaseError',
parent: error: relation "conversations" does not exist
at Parser.parseErrorMessage (/home/chatbot-demo/node_modules/pg-protocol/dist/parser.js:287:98)
at Parser.handlePacket (/home/chatbot-demo/node_modules/pg-protocol/dist/parser.js:126:29)
at Parser.parse (/home/chatbot-demo/node_modules/pg-protocol/dist/parser.js:39:38)
at TLSSocket. (/home/chatbot-demo/node_modules/pg-protocol/dist/index.js:11:42)
at TLSSocket.emit (node:events:511:28)
at addChunk (node:internal/streams/readable:332:12)
at readableAddChunk (node:internal/streams/readable:305:9)
at Readable.push (node:internal/streams/readable:242:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 110,
severity: 'ERROR',
code: '42P01',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'errors.go',
line: '171',
routine: 'NewUndefinedRelationError',
sql: "SELECT entry, speaker, created_at FROM conversations WHERE user_id = 'roie' ORDER By created_at DESC LIMIT 10",
parameters: undefined
},
original: error: relation "conversations" does not exist
Expected Behavior
It should run smoothly
Steps To Reproduce
Run npm run dev
Relevant log output
No response
Environment
- **OS**: linux
- **Language version**:Python 3.8.10
- **Pinecone client version**:
Additional Context
No response
[Bug] The app finds the answer, but doesn't output it in the chat dialogue
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When asking a question in the chat window, the app obviously finds the answer (see error message below), but doesn't output it in the chat dialogue (see screenshot)
See output from terminal below:
[ 'https://www.virke.no/arbeidsgiverstotte/pensjon/' ]
The retirement age in Norway varies between 62 and 75 years old. Employers can choose from four types of pension plans, but must follow any agreements made in a collective bargaining agreement. Employees have the right to reduce their working hours starting at age 62, but the reduction cannot result in a reduced position. There are no limits on how much the working hours can be reduced, but it must not cause significant inconvenience to the company. Virke offers a personal handbook and membership benefits, including legal advice on employment law.
The content does not provide information on the retirement age.
Based
on
the
given
context
,
unfortunately
,
there
is
no
specific
information
about
the
retirement
age
in
Norway
.
However
,
you
can
refer
to
Vir
ke
's
website
for
more
information
about
the
pension
plans
and
benefits
available
for
employees
and
employers
in
Norway
.
The
following
link
will
take
you
to
the
relevant
page
:
[
Source
](
https
://
www
.v
ir
ke
.no
/ar
be
id
sg
iver
st
otte
/p
ens
jon
/
).
Here is my table in cockroacdb:
Expected Behavior
Answer the user in the chat window โ not just in terminal
Steps To Reproduce
- Run the app
- Ask a question you know is in the documentation
Relevant log output
No response
Environment
- **OS**:
- **Language version**:
- **Pinecone client version**:
Additional Context
No response
[Bug] Missing File: ./embeddings
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
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 |
https://nextjs.org/docs/messages/module-not-found
Expected Behavior
Works
Steps To Reproduce
- Clone
npm run dev
- Navigate to demo
- Type message
- Error appears in browser and console saying:
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 |
https://nextjs.org/docs/messages/module-not-found
Relevant log output
No response
Environment
- **OS**: Mac
- **Language version**: Node 18
- **Pinecone client version**: `"@pinecone-database/pinecone": "^0.1.5",`
Additional Context
Found this demo from: https://www.pinecone.io/learn/javascript-chatbot/
Error submitting message: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON[Bug] <title>
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When submitting a prompt, i get the following error message
Expected Behavior
It should fetch the data from pinecone and return the relevant response
Steps To Reproduce
run npm run dev
type 'test' in chat and hit submit
Relevant log output
Error submitting message: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Environment
No response
Additional Context
No response
[Bug] <Uncaught Error: self signed certificate in certificate chain>
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When entering the URL below as per the tutorial (without my url and index name):
https://localhost:3000/api/crawl?urls=url1,url2&limit=10&indexName=yourIndexName
it should upsert the relevant document into pinecone index, however it consoles the following error message:
"Uncaught Error: self signed certificate in certificate chain"
I've tried with a website URL as well as a PDF document and get the same output
Expected Behavior
it should upsert the relevant document into pinecone index,
Steps To Reproduce
npm run start
enter:
https://localhost:3000/api/crawl?urls=url1,url2&limit=10&indexName=yourIndexName
(with own url/document pdf)
Relevant log output
Uncaught Error: self signed certificate in certificate chain
getServerError @ client.js:1
eval @ index.js:598
setTimeout (async)
eval @ index.js:586
asyncGeneratorStep @ _async_to_generator.js:13
_next @ _async_to_generator.js:31
Promise.then (async)
asyncGeneratorStep @ _async_to_generator.js:22
_next @ _async_to_generator.js:31
eval @ _async_to_generator.js:36
eval @ _async_to_generator.js:28
_hydrate @ index.js:641
hydrate @ index.js:528
eval @ next-dev.js:40
Promise.then (async)
eval @ next-dev.js:35
./node_modules/next/dist/client/next-dev.js @ main.js?ts=1689008685415:236
options.factory @ webpack.js?ts=1689008685415:661
__webpack_require__ @ webpack.js?ts=1689008685415:37
__webpack_exec__ @ main.js?ts=1689008685415:1072
(anonymous) @ main.js?ts=1689008685415:1073
webpackJsonpCallback @ webpack.js?ts=1689008685415:1209
(anonymous) @ main.js?ts=1689008685415:9
Environment
- **OS**:
- **Language version**:
- **Pinecone client version**:
Additional Context
No response
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.