Difference between revisions of "Weaviate"

From BITPlan Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 29: Line 29:
  
 
= Installation =
 
= Installation =
see https://raw.githubusercontent.com/semi-technologies/weaviate/
+
see https://weaviate.io/developers/weaviate/installation
 
== Setup, schema, importing data and GraphQL ==
 
== Setup, schema, importing data and GraphQL ==
 
<youtube>L0Y_zZR8FRI</youtube>
 
<youtube>L0Y_zZR8FRI</youtube>
Line 39: Line 39:
  
 
=== Installweaviate ===
 
=== Installweaviate ===
<source lang='bash'>
+
<source lang='bash' highlight='1,9,10'>
# Weaviate with an English Contextionary
+
git clone https://github.com/weaviate/weaviate.git
# Download the Weaviate configuration file
+
Cloning into 'weaviate'...
curl -o docker-compose.yaml "https://configuration.semi.technology/docker-compose?"
+
remote: Enumerating objects: 124394, done.
# Run Docker Compose
+
remote: Counting objects: 100% (14150/14150), done.
docker-compose up
+
remote: Compressing objects: 100% (1626/1626), done.
 +
remote: Total 124394 (delta 12845), reused 13458 (delta 12510), pack-reused 110244
 +
Receiving objects: 100% (124394/124394), 945.83 MiB | 33.55 MiB/s, done.
 +
Resolving deltas: 100% (86422/86422), done.
 +
cd weaviate
 +
docker build --target weaviate -t weaviate .
 +
docker compose up
 +
</source>
 +
 
 +
== docker-compose.yml ==
 +
<source lang='yaml'>
 +
version: '3.4'
 +
services:
 +
  weaviate:
 +
    image: weaviate
 +
    ports:
 +
      - 8080:8080
 +
    environment:
 +
      CONTEXTIONARY_URL: contextionary:9999
 +
      QUERY_DEFAULTS_LIMIT: 25
 +
      AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
 +
      PERSISTENCE_DATA_PATH: './data'
 +
      ENABLE_MODULES: 'text2vec-contextionary'
 +
      DEFAULT_VECTORIZER_MODULE: 'text2vec-contextionary'
 +
      AUTOSCHEMA_ENABLED: 'false'
 +
  contextionary:
 +
    environment:
 +
      OCCURRENCE_WEIGHT_LINEAR_FACTOR: 0.75
 +
      EXTENSIONS_STORAGE_MODE: weaviate
 +
      EXTENSIONS_STORAGE_ORIGIN: http://localhost:8080
 +
      NEIGHBOR_OCCURRENCE_IGNORE_PERCENTILE: 5
 +
      ENABLE_COMPOUND_SPLITTING: 'false'
 +
    image: semitechnologies/contextionary:en0.16.0-v1.2.1
 
</source>
 
</source>
  

Latest revision as of 11:19, 10 June 2023

see

Fill with dictionary "e.g. english".

Versions

Presentations

Installation

see https://weaviate.io/developers/weaviate/installation

Setup, schema, importing data and GraphQL

Docker

Prerequisites

sudo apt-get install curl docker docker-compose

Installweaviate

git clone https://github.com/weaviate/weaviate.git
Cloning into 'weaviate'...
remote: Enumerating objects: 124394, done.
remote: Counting objects: 100% (14150/14150), done.
remote: Compressing objects: 100% (1626/1626), done.
remote: Total 124394 (delta 12845), reused 13458 (delta 12510), pack-reused 110244
Receiving objects: 100% (124394/124394), 945.83 MiB | 33.55 MiB/s, done.
Resolving deltas: 100% (86422/86422), done.
cd weaviate
docker build --target weaviate -t weaviate .
docker compose up

docker-compose.yml

version: '3.4'
services:
  weaviate:
    image: weaviate
    ports:
      - 8080:8080
    environment:
      CONTEXTIONARY_URL: contextionary:9999
      QUERY_DEFAULTS_LIMIT: 25
      AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
      PERSISTENCE_DATA_PATH: './data'
      ENABLE_MODULES: 'text2vec-contextionary'
      DEFAULT_VECTORIZER_MODULE: 'text2vec-contextionary'
      AUTOSCHEMA_ENABLED: 'false'
  contextionary:
    environment:
      OCCURRENCE_WEIGHT_LINEAR_FACTOR: 0.75
      EXTENSIONS_STORAGE_MODE: weaviate
      EXTENSIONS_STORAGE_ORIGIN: http://localhost:8080
      NEIGHBOR_OCCURRENCE_IGNORE_PERCENTILE: 5
      ENABLE_COMPOUND_SPLITTING: 'false'
    image: semitechnologies/contextionary:en0.16.0-v1.2.1

Installation Issue

Python Library

sample code

Integration tests

Videos