{"id":19044564,"url":"https://github.com/brakmic/weaviate_with_openai","last_synced_at":"2026-06-19T01:31:20.483Z","repository":{"id":229064223,"uuid":"619965813","full_name":"brakmic/Weaviate_with_OpenAI","owner":"brakmic","description":"Using OpenAI with Weaviate - Turnkey Edition","archived":false,"fork":false,"pushed_at":"2023-03-28T13:55:50.000Z","size":526,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-02T12:06:36.731Z","etag":null,"topics":["artificial-intelligence","openai","podman","python","weaviate"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brakmic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-27T19:07:25.000Z","updated_at":"2023-06-26T13:20:25.000Z","dependencies_parsed_at":"2024-03-21T21:43:15.996Z","dependency_job_id":null,"html_url":"https://github.com/brakmic/Weaviate_with_OpenAI","commit_stats":null,"previous_names":["brakmic/weaviate_with_openai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brakmic/Weaviate_with_OpenAI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2FWeaviate_with_OpenAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2FWeaviate_with_OpenAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2FWeaviate_with_OpenAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2FWeaviate_with_OpenAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brakmic","download_url":"https://codeload.github.com/brakmic/Weaviate_with_OpenAI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2FWeaviate_with_OpenAI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34514282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","openai","podman","python","weaviate"],"created_at":"2024-11-08T22:46:42.857Z","updated_at":"2026-06-19T01:31:20.453Z","avatar_url":"https://github.com/brakmic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [OpenAI](https://openai.com/) experiments with [Weaviate](https://weaviate.io) - Turnkey Edition\n\n#### Motivation\n\nI just needed a simple `AI` container where I could fire up a vector database, connect to OpenAI and (re)create schemas and objects without caring much about anything else. And I wanted it to support languages like Python, JavaScript etc.\n\nBasically: *Clone it, install packages, and have fun with it.* :)\n\n### Requirements\n\n* [Python 3](https://www.python.org/)\n* [PipEnv](https://pypi.org/project/pipenv/) or similar tools\n* [Podman Desktop](https://podman-desktop.io/) or [Docker Desktop](https://www.docker.com/products/docker-desktop/)\n\n### Setup\n\n* Install [python 3](https://www.python.org/downloads/) for your OS\n* Install [pipenv](https://pipenv.pypa.io/en/latest/) with `pip install --user pipenv`\n* Initialize pipenv in cloned repo with `pipenv --python3`\n* Start python env with `pipenv shell`\n* Install python packages `weaviate-client` and `requests` with `pip3 install PKG_NAME`\n* Generate an [OpenAI API Key](https://platform.openai.com/account/api-keys)\n* Add this key to local shell. By default the variable must be called `OPENAI_APIKEY`\n* Optionally, reconfigure `docker-compose.yml` to use additional plugins from [Weaviate](https://weaviate.io/developers/weaviate/installation/docker-compose)\n* Start container with `podman-compose up -d` or `docker-compose up -d`\n\nThis is how the running container should look like.\n\n![podman1](images/podman1.png)\n\n![podman2](images/podman2.png)\n\n### Using Weaviate with OpenAI\n\n* Open http://localhost:8080/v1/schema (it should be empty on the first start)\n* Go to shell and execute `python setup_engine.py`\n* Refresh the page\n\nYou should see something like this:\n\n![schema1](images/schema1.png)\n\nAlso check objects unter http://localhost:8080/v1/objects\n\n![objects1](images/objects1.png)\n\nNow query for some of those objects by using executing `python query_engine.py`. You should get these results back:\n\n![query1](images/query1.png)\n\nAs Weaviate also supports GraphQL you could use [Apollo GraphQL Explorer](https://studio.apollographql.com/sandbox/explorer) to send queries.\n\nJust enter http://localhost:8080/v1/graphql into the sandbox field.\n\n![graphql1](images/graphql1.png)\n\n### Docker Compose\n\nThe default docker-compose.yml from this repo looks like this.\n\n```yaml\n---\nversion: '3.4'\nservices:\n  weaviate:\n    command:\n    - --host\n    - 0.0.0.0\n    - --port\n    - '8080'\n    - --scheme\n    - http\n    image: semitechnologies/weaviate:1.18.1\n    ports:\n    - 8080:8080\n    restart: on-failure:0\n    volumes:\n    - weaviate_local:/var/lib/weaviate   # mapping volume to keep schema, otherwise it'd be deleted after restart \n    environment:\n      OPENAI_APIKEY: $OPENAI_APIKEY        # OpenAI API key must be present as shell variable: `echo $OPENAI_APIKEY`\n      QUERY_DEFAULTS_LIMIT: 25\n      AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'\n      PERSISTENCE_DATA_PATH: '/var/lib/weaviate'\n      DEFAULT_VECTORIZER_MODULE: 'text2vec-openai'\n      ENABLE_MODULES: 'text2vec-openai'\n      CLUSTER_HOSTNAME: 'node1'\n...\n```\n\n### License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrakmic%2Fweaviate_with_openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrakmic%2Fweaviate_with_openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrakmic%2Fweaviate_with_openai/lists"}