{"id":20313607,"url":"https://github.com/weaviate/recipes-ts","last_synced_at":"2025-07-19T20:07:49.830Z","repository":{"id":223898375,"uuid":"722657225","full_name":"weaviate/recipes-ts","owner":"weaviate","description":"This repository shares end-to-end scripts on how to use various Weaviate features and integrations!","archived":false,"fork":false,"pushed_at":"2025-04-07T10:01:38.000Z","size":2373,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-04-07T11:22:07.754Z","etag":null,"topics":["agents","ai-engineer","generative-ai","javascript","llm-frameworks","retrieval-augmented-generation","vector-database","vector-search"],"latest_commit_sha":null,"homepage":"https://replit.com/@malgamves/recipes-ts#readme.md","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weaviate.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2023-11-23T16:14:36.000Z","updated_at":"2025-04-07T10:01:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb04466d-6cc7-4483-a2ee-97b6781d7997","html_url":"https://github.com/weaviate/recipes-ts","commit_stats":null,"previous_names":["weaviate/recipes-ts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaviate%2Frecipes-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaviate%2Frecipes-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaviate%2Frecipes-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaviate%2Frecipes-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weaviate","download_url":"https://codeload.github.com/weaviate/recipes-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248447595,"owners_count":21105140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["agents","ai-engineer","generative-ai","javascript","llm-frameworks","retrieval-augmented-generation","vector-database","vector-search"],"created_at":"2024-11-14T18:11:59.689Z","updated_at":"2025-04-11T17:15:36.768Z","avatar_url":"https://github.com/weaviate.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Weaviate Recipes](/Weaviate.png)\n\n# Welcome to Weaviate JavaScript Recipes 💚\nThis repo covers end-to-end examples of various features and integrations with [Weaviate](www.weaviate.io) for JavaScript Developers! \n\n\u003e 💡 This repo can also be used online with [Replit](https://replit.com/@malgamves/recipes-ts)\n\n\n## What are recipes? \n\nRecipes are end-to-end scripts showing various features and integrations. Recipes are a reference for what using the Weaviate client can look like. \n\n\n## Concepts Covered 🗺️\n\nHere are some of the concepts this repository covers:\n\n### Similarity Search 🔎\n[Similarity Search](/similarity-search) leverages various machine learning models to perform searches based on semantic similarity. In Weaviate, this is done with `query.nearText`, `query.nearObject` and `query.nearVector` operators.\n\n\n### Generative Search ⌨️\n[Generative Search](/generative-search) allows you to improve your search results by piping them through LLM models to perform RAG. In Weaviate, this is done with `generate.nearText`, `generate.nearObject` and `generate.nearVector` operators.\n\n\u003e ⚠️ Before getting started, you need to follow the installation **Setup Instructions** detailed in the setup section of this document. You will need the setup completed to successfully run the recipes.\n\n\n## 🚀 Setup Instructions\n\n\u003cdetails\u003e\n  \u003csummary\u003e 🌐 Run on Replit\u003c/summary\u003e\n\n### 1. Open on recipes on Replit\n\nNavigate to the recipes [Replit](https://replit.com/@malgamves/recipes-ts) and fork it.\n\n### 2. Run in Weaviate Cloud Service\n\nHead to [WCS](https://console.weaviate.cloud/), where you can easily create a free sandbox cluster. \nTake note of your `cluster URL` and `apiKey` and add them to your `.env` file as `WEAVIATE_URL` and `WEAVIATE_ADMIN_KEY` respectively. \n\n### 3. Define environment variables\nThe `.env.example` file contains all the environment variables you would need to run the recipes.\nGo to each provider website to create and copy your environment variables, e.g. access your [Cohere](https://dashboard.cohere.com/api-keys) variables here. \n```\ncp .env_example .env\n```\n\nNow you're ready to run a recipe! \n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e 🏡 Run locally\u003c/summary\u003e\n  \n### 1. Install npm packages\nClone this repository, and install the project dependencies\n\n```\nnpm install\n```\n\n### 2. Run locally using Docker\nConsidering you already have docker installed, follow along our Docker [installation guide](https://weaviate.io/developers/weaviate/installation/docker-compose). Then run the command below to start your Weaviate server.\n\n```\ndocker compose up -d\n```\n\u003e ⚠️ When using Docker, remember to update all the `connectToWeaviateCloud()` methods to `connectToLocal()`. \n\n**IMPORTANT:** Make sure to define your environment variables before running Docker\n\n### 3. Define environment variables\nThe `.env.example` file contains all the environment variables you would need to run the recipes.\nGo to each provider website to create and copy your environment variables, e.g. access your [Cohere](https://dashboard.cohere.com/api-keys)\nvariables here. \n```\ncp .env_example .env\n```\n\nNow you're ready to run a recipe! \n\u003c/details\u003e\n\n## Run a Recipe!\n\nRecipes are organized by concepts using folders (i.e. similarity search). Each concept folder has multiple folders showing its implementation with various model providers (i.e. Cohere, Mistral AI etc).\nProvider subfolders contain relevant scripts and a `README.md` file with details on how to run each specific recipe.\n\nTo run a recipe, navigate to the concept you are interested in and select a provider to run it with. Follow the instructions in the `README.md` file and you should be good to go. \n\n\u003e ⚠️ Remember to add the relevant API keys to your `.env` files\n\n## Feedback ❓\nPlease note this is an ongoing project, and updates will be made frequently. If you have a feature you would like to see, please drop it in the [Weaviate Forum](https://forum.weaviate.io/c/general/4) or open an issue.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaviate%2Frecipes-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweaviate%2Frecipes-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaviate%2Frecipes-ts/lists"}