dtmoyaji / gemini-pad

google Gemini GUI Interface for Desktop.
MIT License
0 stars 0 forks source link

elasticsearchに対応する #33

Closed dtmoyaji closed 2 months ago

dtmoyaji commented 2 months ago

データの取得先をsolrにしたが、将来を見越してelasticsearchに変更する。 Local LLMのバックエンドとして、nextcloud+postgresql+elasticsearchのdocker-compose.ymlとDockerfileを別に作成して公開する。 亜種として、nextcloud+postgresql+elasticsearch+kong+kongaも検索結果を外部公開するために用意する。

dtmoyaji commented 2 months ago

JA: ver 1.1.4でElasticsearchに対応した。 ただし、ベクトル検索ではなくキーワード検索であるため、スコアによるカットオフ値をつかって適合率の低いドキュメントをLLMのデータから除外するようにした。 EN: Elasticsearch support was added in version 1.1.4. However, it is not a vector search but a keyword search, so we use a score cutoff value to exclude documents with low relevance from the LLM data.