This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface SomeType { | |
name: string; | |
prop: string; | |
} | |
export abstract class MyStore< | |
QueryVariables extends SomeType | |
> extends ComponentStore<any> { | |
protected abstract readonly query$: Observable<Omit<QueryVariables, 'name'>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BullModule } from '@nestjs/bull'; | |
import { Module } from '@nestjs/common'; | |
import { QueueGracefulShutdown } from './queue-graceful-shutdown'; | |
const QUEUE_NAME = 'my-queue'; | |
@Module({ | |
imports: [ | |
BullModule.registerQueue({ | |
name: QUEUE_NAME, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TensorFlowEmbeddings } from '@langchain/community/embeddings/tensorflow'; | |
import { | |
ChatPromptTemplate, | |
HumanMessagePromptTemplate, | |
SystemMessagePromptTemplate, | |
} from '@langchain/core/prompts'; | |
import { ChatOpenAI } from '@langchain/openai'; | |
import '@tensorflow/tfjs-node'; | |
import { config } from 'dotenv'; | |
import { MemoryVectorStore } from 'langchain/vectorstores/memory'; |