pinecone-io / chatbot-demo

277 stars 175 forks source link

[Bug] The app finds the answer, but doesn't output it in the chat dialogue #6

Closed axelferdinand closed 1 year ago

axelferdinand commented 1 year ago

Is this a new 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
/
).
image

Here is my table in cockroacdb:

image image

Expected Behavior

Answer the user in the chat window – not just in terminal

Steps To Reproduce

  1. Run the app
  2. 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

axelferdinand commented 1 year ago

Got it working, but simply don't know how, haha