Giter Club home page Giter Club logo

weaviate's Introduction

Weaviate Weaviate logo

Build Status Go Report Card Coverage Status Slack Newsletter

Demo of Weaviate

Description

Weaviate is a cloud-native, real-time vector search engine (aka neural search engine or deep search engine). There are modules for specific use cases such as semantic search, plugins to integrate Weaviate in any application of your choice, and a console to visualize your data.

GraphQL - RESTful - vector search engine - vector database - neural search engine - semantic search - HNSW - deep search - machine learning - kNN

Documentation

You can find detailed documentation in the developers section of our website or directly go to one of the docs using the links in the list below.

Examples

You can find more examples here

Unmask Superheroes in 5 steps using the NLP module

A simple example in Python (you can also use other client libs) showing how Weaviate can help you unmask superheroes thanks to its vector search capabilities ๐Ÿฆธ

  1. Connect to a Weaviate
import weaviate
client = weaviate.Client("http://localhost:8080")
  1. Add a class to the schema
classObj = {
    "class": "Superhero",
    "description": "A class describing a super hero",
    "properties": [
        {
            "name": "name",
            "dataType": [
                "string"
            ],
            "description": "Name of the super hero"
        }
    ],
    "vectorizer": "text2vec-contextionary" # Tell Weaviate to vectorize the content
}
client.schema.create_class(classObj) # returns None if successful

Step 3. Add the superheroes with a batch request

batman = {
    "name": "Batman"
}
superman = {
    "name": "Superman"
}
batch = weaviate.ObjectsBatchRequest()
batch.add(batman, "Superhero")
batch.add(superman, "Superhero")
client.batch.create(batch)

Step 4. Try to find superheroes in the vectorspace

def findAlterego(alterEgo):
    whoIsIt = client.query.get(
        "Superhero",
        ["name", "_additional {certainty, id } "]
    ).with_near_text({
        "concepts": [alterEgo] # query that gets vectorized ๐Ÿช„
    }).do()

    print(
        alterEgo, "is", whoIsIt['data']['Get']['Superhero'][0]['name'],
        "with a certainy of", whoIsIt['data']['Get']['Superhero'][0]['_additional']['certainty']
    )

findAlterego("Clark Kent")  # prints something like: Clark Kent is Superman with a certainy of 0.6026741
findAlterego("Bruce Wayne") # prints something like: Bruce Wayne is Batman with a certainy of 0.6895526

Step 5. See how the superheroes are represented in the vectorspace

def showVectorForAlterego(alterEgo):
    whoIsIt = client.query.get(
        "Superhero",
        ["_additional {id} "]
    ).with_near_text({
        "concepts": [alterEgo] # query that gets vectorized ๐Ÿช„
    }).do()

    getVector = client.data_object.get_by_id(
        whoIsIt['data']['Get']['Superhero'][0]['_additional']['id'],
        additional_properties=["vector"]
    )

    print(
        "The vector for",
        alterEgo,
        "is",
        getVector['vector']
    )

showVectorForAlterego("Clark Kent") # prints something like: The vector for Clark Kent is [-0.05484624, 0.08283167, -0.3002325, ...etc...

Support

Contributing

weaviate's People

Contributors

etiennedi avatar bobvanluijt avatar moretea avatar jeroenstraverskpn avatar antas-marcin avatar laura-ham avatar jeroenstravers1 avatar fefi42 avatar idcrosby avatar johnciocoiu avatar krijger avatar carne-vore avatar dependabot[bot] avatar zedit avatar teoyaomiqui avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.