Skip to content

Commit

Permalink
add Ollama server instructions for env var
Browse files Browse the repository at this point in the history
  • Loading branch information
do-me committed Mar 5, 2024
1 parent 7f78b9a commit 4126fa0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,11 @@ <h4>Chat</h4>
<div class="col-12">
<div>
<hr />
<h4>Ollama Chat Integration</h4>
<p>Enter a question to be answered and use the placeholders <b>SEARCH_RESULTS</b> or <b>FULL_TEXT</b> for context.<br> Install <a href="https://ollama.com/" target="_blank">Ollama</a> locally on macOS, Linux or Windows and connect your server (currently only default http://localhost:11434 supported).</p>
<h4>Ollama Chat Integration (New🔥)</h4>
<p>Enter a question to be answered and use the placeholders <b>SEARCH_RESULTS</b> or <b>FULL_TEXT</b> for context.<br> Install <a href="https://ollama.com/" target="_blank">Ollama</a> locally on macOS, Linux or Windows and connect your server (currently only default http://localhost:11434 supported).<br>
Make sure to set the environment variable so that requests from SemanticFinder are allowed:<br>
- on Windows Powershell: <code>$env:OLLAMA_ORIGINS="https://do-me.github.io/SemanticFinder"; ollama serve</code><br>
- on Ubuntu: <code>OLLAMA_ORIGINS="https://do-me.github.io/SemanticFinder" ollama serve</code></p>
<div class="form-floating input-group mb-2">
<input id="ollama_chat_query" class="form-control"
value="Based on the following context, answer the question: What is this text about? Context: FULL_TEXT">
Expand Down

0 comments on commit 4126fa0

Please sign in to comment.