watson-discovery

How can I link IBM Watson Assistant with Watson Discovery

梦想的初衷 提交于 2021-02-20 02:53:07
问题 I wish to make a chatbot using the two services listed in the title. Watson assistant is used to make the dialog for the chatbot while watson discovery allows for finding information in a large variety of documents such as .html, .pdf files. I want to make a chatbot that uses these two services. The way the chatbot would work is that when a user says something into the chatbot, it will go through watson discovery and run that query which will then return results back to the user. I currently

Node js execute function before complete multiple lines of code

十年热恋 提交于 2020-01-25 07:19:29
问题 This function: function print(){ console.log('num 1') setTimeout(() => { global.name = 'max' console.log('num 2') },9000); console.log('num 3'); } print(); console.log(global.name) is priting this: num 1 num 3 undefined num 2 And I need to: print num 1 wait untill the 9 seconds set the global.name = max print num 2 print num 3 console.log(global.name) print max and not undefined I wrote this code in python and it executese line by line because there is nothing called sync and async. I need

How to instruct IBM Watson Discovery about the format of my documents?

ε祈祈猫儿з 提交于 2019-12-23 03:29:10
问题 I am trying to use the Watson Discovery service to build a virtual customer support agent. We have many documents with tons of Q and A in various formats. In the simplest case, we just have a doc, with an array of: Q:.. A:... Q:... A:... etc. When we upload these PDF files and then try to query it, it returns the full document that included the relevant answer. Is there a way to instruct Discover service, so that it will only return the relevant question and answer pair instead of the full

IBM Watson Knowledge Studio 2.0 - deploying a rule-based model is experimental. What does that mean?

廉价感情. 提交于 2019-12-13 10:38:00
问题 When building a rule-based model in Watson Knowledge Studio, a reminder appears saying:- The rule-based model that you build here can be deployed and used by other Watson services for experimental purposes only. In the online documentation, at the beginning of chapter "Deploying a rule-based annotator to IBM Watson Discovery", another similar mention appears:- Attention: This is currently an experimental feature of the service. I started building an application based on a WKS custom rule

Watson Knowledge Studio integration with Watson Discovery

﹥>﹥吖頭↗ 提交于 2019-12-12 06:47:06
问题 I was able to get the my_config.json file by doing the provided curl statement and update/save it, but when I PUT it given the requested curl I am receiving a 415 error, unsupported media type. According to the documentation, it's supposed to accept the .json. This is what I'm using: curl -X PUT -u "discovered":"discoverypw" -H “Content-Type: application/json” -d@my_config.json 回答1: I supposed you are trying to update a configuration. I tried the operation as described at the following page

How to instruct IBM Watson Discovery about the format of my documents?

我的梦境 提交于 2019-12-07 03:23:26
I am trying to use the Watson Discovery service to build a virtual customer support agent. We have many documents with tons of Q and A in various formats. In the simplest case, we just have a doc, with an array of: Q:.. A:... Q:... A:... etc. When we upload these PDF files and then try to query it, it returns the full document that included the relevant answer. Is there a way to instruct Discover service, so that it will only return the relevant question and answer pair instead of the full document? To have Discovery return the individual relevant QA pairs, they should be split up and passed

How do we get the document file url using the Watson Discovery Service?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 11:28:56
I don't see a solution to this using the available api documentation. It is also not available on the web console. Is it possible to get the file url using the Watson Discovery Service ? If you need to store the original source/file URL, you can include it as a field within your documents in the Discovery service, then you will be able to query that field back out when needed. I also struggled with this request but ultimately got it working using Python bindings into Watson Discovery. The online documentation and API reference is very poor; here's what I used to get it working: (Assume you

How do we get the document file url using the Watson Discovery Service?

可紊 提交于 2019-12-01 08:22:35
问题 I don't see a solution to this using the available api documentation. It is also not available on the web console. Is it possible to get the file url using the Watson Discovery Service ? 回答1: If you need to store the original source/file URL, you can include it as a field within your documents in the Discovery service, then you will be able to query that field back out when needed. 回答2: I also struggled with this request but ultimately got it working using Python bindings into Watson

How to get exact answers instead of the whole document using Watson Discovery?

一笑奈何 提交于 2019-11-30 05:24:19
After testing the discovery service , it seems useless to me at least or I might be missing something. When I query, it matches the document and returns the whole document . If my document is huge, then for all queries it returns the whole document matching the query text, which is useless. Now Do I have to create a separate document for every query? If that's the case, API.AI or WIT.AI is a better option. Please clear me on what I am missing in here! For now with Discovery, you would need to break up your documents once to put them in a collection, then any query against the collection in

How to get exact answers instead of the whole document using Watson Discovery?

痞子三分冷 提交于 2019-11-29 03:42:54
问题 After testing the discovery service , it seems useless to me at least or I might be missing something. When I query, it matches the document and returns the whole document . If my document is huge, then for all queries it returns the whole document matching the query text, which is useless. Now Do I have to create a separate document for every query? If that's the case, API.AI or WIT.AI is a better option. Please clear me on what I am missing in here! 回答1: For now with Discovery, you would