https://github.com/parmentf/node-ector-backend
HTTP API for ECTOR
https://github.com/parmentf/node-ector-backend
Last synced: 8 months ago
JSON representation
HTTP API for ECTOR
- Host: GitHub
- URL: https://github.com/parmentf/node-ector-backend
- Owner: parmentf
- License: mit
- Created: 2018-04-26T08:11:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-17T21:59:03.000Z (over 7 years ago)
- Last Synced: 2025-04-12T05:35:19.002Z (12 months ago)
- Language: JavaScript
- Size: 407 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-ector-backend
HTTP API for ECTOR
## Launch
To launch ector backend server, use either:
```bash
npm start
```
or:
```bash
heroku local web
```
## Routes
### reply
`/v1/reply/{user}/{entry}`
Get ECTOR's reply to the `user`'s `entry`.
> *Warning*: ECTOR learns from the `entry`, so if that entry
> is incorrect, it would nevertheless be learned. Everything
> that's learned may be used in ECTOR's replies. See [Tay](https://en.wikipedia.org/wiki/Tay_(bot)).
### learn
`/v1/learn/{source}/{entry}`
Add knowledge to ECTOR's concept network.
No activation value added. The source is an identifier of where the knowledge comes from (eg Wikipedia).
Returns the nodes created.
### concept-network
`/v1/concept-network`
Get the Concept Network object.
That may be useful to save ECTOR's concepts memory (not its memory for what you said to him lately).
### concept-network-state
`/v1/concept-network-state/{user}`
Get the concept network state of a `user`, that is to say the activation values within the concept network.
It's from these activation values that ECTOR choose the words from which it will form a sentence to reply.