9 ms·
It provided me with a really good solution to my problems: Can you describe the problem in a paragraph? Please use small sentences, I'm only a duck. > My coll
by splitbrain 12y ago
It provided me with a really good solution to my problems:
Can you describe the problem in a paragraph? Please use small sentences, I'm only a duck.
> My colleagues are dumb!
>> Is your colleagues the thing that has the problem?
> yes
>> Can you explain what your colleagues does?
> They do very very dumb things.
>> Do you fully understand how it does what it does? Could you split your colleagues into smaller chunks?
> split them into chunks? Cheers duck, I think I have it now! grabs axe
- mkesper 12y agoYes, the awaited context is totally missing. Seems to be about programs only.
- fesuffolk 12y agounfortunately so, we're looking into other contexts some some more specific programming ones.
- goldenkey 12y agoThere's not that much humor on HN so thank you for making me laugh out loud. On a serious note, to actually infer the type of object, would we need Natural Language Processing or something deeper like an actual AI. Would machine learning suffice (clearly would take a lot of memory). Whats the best approach to the simple task of inferring the object type granular enough to appropriate the situation?
- undecisive 12y agoOne of the constraints we gave ourselves was that we wanted a fully in-browser solution, and transparently secure - no server-side backend, therefore no data protection issues. With that in mind, any training we did would have to be done by us. This limits our rubber ducking to exploits within our areas of expertise, but does mean that any memory / cpu consumption occurs on the client machine. It is potentially limited, but it is not a drain on our resources. Secondly, this was very much a toy made for the fun of it, so our "brain" is entirely hard coded. The language processing is very static, and very simple - so it converts "my problem" into "your problem" so that it can ask suitable questions while faking some intelligence, and there is a state machine that would allow us to make the wizard more flexible based on certain inputs. So to answer your question specifically, if following the previous conventions, I would have tried to find some kind of word mapping to find categories from words in the sentence. For example, the question "I can't seem to get my stitching to look neat" or "my crochet hook keeps getting stuck" - it would notice the words "stitching" and "crochet" and decide the questions are related to haberdashery, so ask general questions from that domain (e.g. "can you unpick a little way and try again?", "are you keeping a consistent pressure on your thread / wool?") Of course, this isn't perfect. A couple of people have noted that the duck can encourage you to hack people up (we discourage this course of action and offer no warrantee for any advice the duck appears to present, especially to anyone psychotically inclined). But inter-personal issues are one realm in which this dumb regex-matching falls down frequently - it's very hard to work out that the problem is actually a person, without asking the user directly. That said, this is something that the state machine allows. Sorry if this isn't a very good answer. I've seen tools like https://github.com/harthur/brain https://github.com/harthur/brain or https://github.com/NaturalNode/natural https://github.com/NaturalNode/natural and would love to attempt something with that in the future, but yes - my guess is that it would be slow to train, hard for us to cover all bases, and may not fit into the memory of the client's computer. Alternatively, one thing that we considered and ultimately rejected (mostly on UX grounds) was allowing users to send us their conversations so that we could improve them - again, a manual process, but one that possibly could be automated with a proper AI library and a pre-generated 'brain'! What can I say? That's what v2 is for :)
- goldenkey 12y agoThanks for your response. I actually didn't realize the duck had that much logic built into it, so my question was more tending towards what could be done. Now that I think of it, the English language is so large that any kind of client side brain would be massive. Still though, I've seen multi meg JS so a fully in browser solution is not totally abated. Good luck with v2!
- 5l 12y agoThis definitely has applications beyond coding: http://imgur.com/62335fX http://imgur.com/62335fX
- goldenkey 12y agoAnd I wonder why photons like to entangle. It must be depressing to be apart from parent wave