Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Core - updates to support latest changes in LangChain and TypeScript-ESLint #66

Closed
pranav-kural opened this issue Aug 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@pranav-kural
Copy link
Collaborator

pranav-kural commented Aug 1, 2024

There are some issues in updating to the latest releases of LangChain and TypeScript-ESLint.

LangChain (0.2.9 to 0.2.12) #64

 Type 'MemoryVectorStore' is not assignable to type 'VectorStore'.
    Types of property 'similaritySearch' are incompatible.
      Type '(query: string, k?: number | undefined, filter?: ((doc: Document<Record<string, any>>) => boolean) | undefined, _callbacks?: Callbacks | undefined) => Promise<...>' is not assignable to type '(query: string, k?: number | undefined, filter?: string | object | undefined, _callbacks?: Callbacks | undefined) => Promise<DocumentInterface<Record<string, any>>[]>'.

TypeScript ESLint (7.18.0 to 8.0.0) #65

/home/runner/work/qvikchat/qvikchat/src/cache/in-memory-cache-store.ts
Error:   161:7  error  Expected an assignment or function call and instead saw an expression  @typescript-eslint/no-unused-expressions

/home/runner/work/qvikchat/qvikchat/src/endpoints/endpoints.ts
Error:   317:18  error  'error' is defined but never used  @typescript-eslint/no-unused-vars

/home/runner/work/qvikchat/qvikchat/src/utils/utils.ts
Error:   51:[12](https://github.com/oconva/qvikchat/actions/runs/10200824958/job/28221262173?pr=65#step:6:13)  error  'e' is defined but never used  @typescript-eslint/no-unused-vars

✖ 4 problems (4 errors, 0 warnings)

Error: Process completed with exit code 1.
@pranav-kural pranav-kural added bug Something isn't working enhancement New feature or request labels Aug 1, 2024
@pranav-kural pranav-kural added this to the Target Release 2.0.x milestone Aug 1, 2024
@pranav-kural pranav-kural self-assigned this Aug 1, 2024
pranav-kural added a commit that referenced this issue Aug 1, 2024
* removed dependency on @genkit-ai/firebase and @genkit-ai/firebase #67

* Refactored codebase to implement type-only imports and export #68

* Implemented logic to reset cache record on expiry #69 + fixed #66

* updated implementation of  method for cache store #69

* re-factored and re-organized code to export `defineChatEndpoint` from root #70

* updated `langchain` to v0.2.12 + added badges to README #66
pranav-kural added a commit that referenced this issue Aug 1, 2024
* updated cache store to support multimodal inputs #43

* updates to cache store for multimodality #43

* updated define chat endpoint logic to support multimodal input output and verbose mode

* fixed endpoint output schema to support verbose response

* updated tests to support multimodal input output (tests only use text I/O for now) #43

* formatting change

* added changes to setup `alpha` branch for alpha release

* Added Changes to prompts, chat agent, endpoints to support Multimodal I/O (#57)

* added DALL-E 3 to supported models

* Updated prompts with partials and custom output schema #43

* updated prompts for multimodality #43

* Updated chat agent class for multimodal I/O #43

* Updated defineChatEndpoint to support multimodal I/O #43

* bumped NPM package for alpha release

* Fixed issues with basic system prompt + added default system prompts #43 (#59)

* Multimodal fix - multiple changes to chat agent module to support multimodal I/O (#60)

* Fixed issues with basic system prompt + added default system prompts #43

* multiple changes to chat agent module to support multimodal I/O

* bumped package version for alpha release

* Models patch - fixes for multimodal support + implementation of `configureAndRunServer` method #43 #54 (#63)

* fix for LLM model configurations type inference (Gemini, OpenAI, DALL-E) #43

* Bumped pre-release package version + removed dependency on genkit-langchain and genkit-chromadb

* added the `configureAndRunServer` method #54 + moved exports for server and genkit to root level

* Final merge for v2 pre-release branch (#71)

* removed dependency on @genkit-ai/firebase and @genkit-ai/firebase #67

* Refactored codebase to implement type-only imports and export #68

* Implemented logic to reset cache record on expiry #69 + fixed #66

* updated implementation of  method for cache store #69

* re-factored and re-organized code to export `defineChatEndpoint` from root #70

* updated `langchain` to v0.2.12 + added badges to README #66

* Bumped pre-release version - final for v2

* Remove alpha NPM package workflow + changed package version to 2.0.0

* fixed workflows for pre-deploy build + code scanning
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant