desmarchris / docs-bot Goto Github PK
View Code? Open in Web Editor NEWConversation bot using Discovery for long tail questions about Watson Conversation
Conversation bot using Discovery for long tail questions about Watson Conversation
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.
Each time I call a certain query from the discovery, it displays this error message, any idea what's wrong ?
I've checked my JSON documents too, it's correct(followed by the template you gave)
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]);"
By weirdly, I mean only the first result is relevant, and the second result is not.
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)
Hello everybody,
I have created the application using this code but conversation and discovery are not working.
CONVERSATION_USERNAME=<...>
CONVERSATION_PASSWORD=<...>
WORKSPACE_ID=<...>
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.