Skip to content

Instantly share code, notes, and snippets.

View laura-ham's full-sized avatar
👱‍♀️
Ready to code

Laura Ham laura-ham

👱‍♀️
Ready to code
View GitHub Profile
@laura-ham
laura-ham / create_schema.py
Created March 31, 2021 07:35
Create a Weaviate schema with a Wine class
import weaviate
client = weaviate.Client("http://localhost:8080")
class_obj = {
"class": "Wine",
"properties": [
{
"name": "title",
"dataType": ["text"]
@laura-ham
laura-ham / docker-compose.yml
Last active March 31, 2021 07:32
Weaviate docker-compose configuration file 1.2.1 transformers
---
version: '3.4'
services:
weaviate:
image: semitechnologies/weaviate:1.2.1
ports:
- 8080:8080
restart: on-failure:0
environment:
TRANSFORMERS_INFERENCE_API: 'http://t2v-transformers:8080'