---
title: "Discussion on \"Swapping OpenAI for a Fake Embedder With One Environment Variable\" | Hashnode"
description: "Discussion on \"Swapping OpenAI for a Fake Embedder With One Environment Variable\". A Factory refactor in a NestJS RAG API, and three things the tutorials leave out"
url: "https://hashnode.com/posts/swapping-openai-for-a-fake-embedder-with-one-environment-variable/6ae0887d18cbd3a0b53c3108"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Swapping OpenAI for a Fake Embedder With One Environment Variable](https://yusufoztoprak.hashnode.dev/swapping-openai-for-a-fake-embedder-with-one-environment-variable?utm_source=hashnode&utm_medium=feed)

A Factory refactor in a NestJS RAG API, and three things the tutorials leave out

Oct 27 · 9 min read · yusufoztoprak.hashnode.dev  
Read the article

-   [#nestjs](https://hashnode.com/tag/nestjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#rag](https://hashnode.com/tag/rag)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)

## Written by

[Yusuf Öztoprak](https://hashnode.com/@yusufoztoprak)

@yusufoztoprak · Istanbul, Turkey

  
[View profile](https://hashnode.com/@yusufoztoprak)

Backend Engineer | AI Infrastructure (RAG · pgvector · LLM APIs)

Backend Engineer building AI infrastructure — RAG, pgvector, LLM APIs.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
