Giter VIP home page Giter VIP logo

docs-bot's Introduction

docs-bot's People

Contributors

desmarchris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docs-bot's Issues

Discovery is not working

Hi .. I have created the application using this code and conversation is working but discovery is not working.. when I cal discovery from discovery it's not showing any results.. I have added discovery intent and questions in conversation. Please let me know if I have missed any other steps.

Conversation and Discovery not working

Hello everybody,
I have created the application using this code but conversation and discovery are not working.

  1. I have renamed "example.env" file to ".env"
  2. I fill out:

Watson conversation

CONVERSATION_USERNAME=<...>
CONVERSATION_PASSWORD=<...>
WORKSPACE_ID=<...>

Watson Discovery

DISCOVERY_USERNAME=<...>
DISCOVERY_PASSWORD=<...>
DISCOVERY_ENVIRONMENT_ID=<...>
DISCOVERY_COLLECTION_ID=<...>
3) I remplaced the workspace.json by a new workspace.json that contain my intents, entities and dialogs
4) npm install
5) npm start
=> the application is running but when typping something, no answer is displayed. For example, when I write "hello" nothing happens.

Please let me know if I have missed any other steps and help me to run this application.

Discovery is not working

Dear Sir @desmarchris :
I created a chatbot application according to your tutorial. Conversation service is working but Discovery service is not working knowing that I have added discovery intent and questions and in dialog i have discovery dialog node. The extensions of documents uploaded in discovery service are .json (containing title, text and url). You find here the error found.
Please help me to find the solution.

image

Discovery is working weirdly, not as expected, help !

Each time I call a certain query from the discovery, it displays this error message, any idea what's wrong ?

  1. I've checked my JSON documents too, it's correct(followed by the template you gave)

  2. Added intents and dialogs(e.g. intents[0].confidence>0.5) as well

3)It's working weirdly only when I change
"resolve([data.results[0].title, data.results[0].text, data.results[0].url]);"
TO
"resolve(data.results[0]);"

  1. By weirdly, I mean only the first result is relevant, and the second result is not.

  2. Only received the error log(below) when I used
    "resolve([data.results[0].title, data.results[0].text, data.results[0].url]);"

Promise { '' }
Promise { '' }
C:\Users\L31303\Desktop\New\docs-bot-master\sendBoth.js:39
resolve([data.results[0].title, data.results[0].text, data.results[0].url]);
^

TypeError: Cannot read property 'title' of undefined
at C:\Users\L31303\Desktop\New\docs-bot-master\sendBoth.js:39:41
at Request._callback (C:\Users\L31303\Desktop\New\docs-bot-master\node_modules\watson-develop
er-cloud\lib\requestwrapper.js:108:5)
at Request.self.callback (C:\Users\L31303\Desktop\New\docs-bot-master\node_modules\request\re
quest.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (C:\Users\L31303\Desktop\New\docs-bot-master\node_modules\request\requ
est.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Gunzip. (C:\Users\L31303\Desktop\New\docs-bot-master\node_modules\request\reque
st.js:1091:12)
at Gunzip.g (events.js:292:16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.