You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+68-17Lines changed: 68 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
-
## w3kipedia
1
+
## zwi-fave
2
2
3
-
[w3kipedia](https://github.com/onepeerlabs/w3kipedia) was originally a try to participate for the [WAM](https://www.wearemillions.online/) hackathon for a better wikipedia on swarm.
4
-
5
-
Now [w3kipedia-fave](https://github.com/onepeerlabs/w3kipedia-fave) is a modified version of w3kipedia that uses FaVe to store, index and search the content.
3
+
This project uses FaVe and fairdatasociety/huggingface-vectorizer to index, store and search zwi files content.
6
4
7
5
It has two components
8
6
@@ -14,8 +12,6 @@ It has two components
14
12
15
13
Server will start a http-server that can fetch content from FaVe and display them in the web browser.
This will start a local http-serve which will serve wikipedia content on port `:8080`.
60
+
This will start a local http-serve which will serve wikipedia content on port `:8080`.
65
61
66
-
#### How Indexer works:
62
+
this project [uses code](https://github.com/akhenakh/gozim/blob) that is [MIT licensed](https://github.com/akhenakh/gozim/blob/master/LICENSE)
67
63
68
-
Indexer uses [FaVe](https://github.com/fairDataSociety/FaVe) to store content and index them for doing semantic search. It is sanitizing the Article content and vectorizing it to do FaVe Nearest Neighbour Search.
64
+
### Docker Compose
69
65
70
-
#### How Server works:
66
+
Best way to run the server is to use a single docker-compose file that will start vectorizer, FaVe and the server.
71
67
72
-
Server lists all the items in the server with "text/html" mimetype.
68
+
Copy the following docker-compose file and save it as `docker-compose.yml` in a directory.
For showing the content it checks "GET" request on "/wiki/XXXX". it reads the "XXXX" relative url, then finds the entry for that item in the FaVe/FairOS-dfs document store,
75
-
downloads the content and sends it back as response.
118
+
Change the environment variables to match your setup.
119
+
```
120
+
BEE_API: <BEE_URL> # Bee api endpoint (Make sure to use local ip (e.g. 192.168.x.x), not "localhost" or "127.0.0.1")
121
+
RPC_API: <RPC_ENDPOINT_FOR_ENS> # This is for fairOS-dfs to authenticate with ENS
122
+
USER: <USER_NAME> # FairOS-dfs user name
123
+
PASSWORD: <PASSWORD> # FairOS-dfs password
124
+
POD: <POD_NAME> # FairOS-dfs pod name to store content
125
+
COLLECTION_NAME: <COLLECTION_NAME> # Collection name to store content on FaVe
126
+
```
76
127
77
-
this project [uses code](https://github.com/akhenakh/gozim/blob) that is [MIT licensed](https://github.com/akhenakh/gozim/blob/master/LICENSE)
128
+
Then run `docker-compose up` to start the server. The server should be available on port `:8526`.
0 commit comments