From b2248a452550134caf820a9d18906197239fe7ea Mon Sep 17 00:00:00 2001 From: Renlong <9191251+YIN-Renlong@users.noreply.github.com> Date: Sun, 30 Apr 2023 21:09:20 +0200 Subject: [PATCH] Update README.md run Semantra by using the following command in shell to index all files in a folder --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a7b0928..4800862 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,12 @@ You can run Semantra over multiple documents, too: semantra report.pdf book.txt ``` +You may run Semantra by using the following command in shell to index all files in a folder: + +```sh +folder_path="/path/to/folder/"; find "$folder_path" -type f -exec semantra {} + +``` + Semantra will take some time to process the input documents. This is a one-time operation per document (subsequent runs over the same document collection will be near instantaneous). Once processing is complete, Semantra will launch a local webserver, by default at [localhost:8080](http://localhost:8080). On this web page, you can interactively query the passed in documents semantically.