Comments (8)
It looks like this routes the phrases to other services, like Wolfram Alpha, Answers.com, etc.
Do you have a list of all the possible services it gets routed to?
Also, does it route them all in parallel? Is there a SLA on how long someone's command could get left hanging?
I like it but need to understand it better before using it in this.
Related doc:
https://docs.google.com/document/d/1dVG_B5Sc2x-fi1pN6iJJjfF1bJY6KEFzUqjOb8NsntI/edit
from betty.
from betty.
Isn't the point of Betty to quickly help you with figuring out/remembering commands? I feel like pulling information from the web to answer questions is better done in an interface that isn't the command line, such as with Siri and Alfred.
e.g. I just sent a pull request added date and time commands to Betty. The point of this isn't at all to make it easy for the user to figure out the time, but to make it easy for the user to see and run the command he/she would have to type if they forgot how to, for example, display just the month using Date.
from betty.
@pickhardt thanks for looking into it + good questions
Yes about 100 different 'handlers' are queried in parallel, with prioritized return order
The average response time is between .6 and .9 seconds
The internal timeout is depending on the question, global maximum four seconds.
@cheniel The bigger vision of Betty seams to be more like a "voice operating system". I agree that most commands are probably better served locally. However instead of limiting Betty to local man pages why not get the help of the web to answer questions? Also see the interesting 'howdoi' project: https://github.com/gleitz/howdoi
from betty.
@cheniel Yes, but as pannous said it'd be great if it could respond to human language input, whether thats a command or a question. However, I don't want it to default fallthrough to web knowledge for now.
I am planning to add user preferences that will be useful for handling this. For instance, when you first run it with a command it doesn't understand, it'll say "I don't know. Do you want me to try web knowledge?" - and if you say yes, then it will save your preference so you don't have to keep saying yes all the time.
from betty.
@pickhardt Ah, that's a good way to handle it. Parsing queries for "search the web" or adding a command-line option that forces or disables using web knowledge could supplement that as well.
from betty.
Idea: For inputs matching "what is ...", "calculate ...", "how ..." make it default. For all other queries as suggested by you, via preference or ask.
from betty.
Closing since web mode is now in master. More info: "betty turn web mode on" then "betty what is the weather in minneapolis"
from betty.
Related Issues (20)
- Betty does not work with internet HOT 4
- Maintainer? HOT 1
- Go home doesn't actually work HOT 3
- betty says "Couldn't get a file descriptor referring to the console" while using web queries
- Add a setting to change the weather from Fahrenheit to Celsius and vice versa HOT 1
- Problem with command "go crazy"
- Problem with command "whats my real name" HOT 1
- command not found stuff on arch HOT 1
- command not found stuff on arch HOT 6
- Additional git support HOT 2
- BETTY warning Insecure world writable after speak to me command
- install.rb copies the wrong files if not in correct directory
- Can you please add a command for multiple directory creation
- Make installation possible via RubyGems? HOT 1
- Error: no say in HOT 1
- $ betty give me permission to this directory - incorrect semantics.
- how can i run it? HOT 4
- zsh install problems? HOT 3
- If you could add Italian HOT 1
- Can anyone update this code? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betty.