The flowManagerStore.ts file is added to the src/frontend/src/stores directory. This file contains the implementation of a custom store called RFState, which manages the state of nodes and edges in a reactflow component. The store provides various functions and callbacks to manipulate and update the nodes and edges.
The RFState interface defines the structure of the store, including the nodes and edges arrays, as well as callbacks for handling changes to nodes and edges.
The useStore hook is created using the create function from the zustand library. It initializes the store with an empty nodes and edges array, and defines callbacks for handling changes to nodes, edges, and connections.
The setEdges and setNodes functions are used to update the nodes and edges arrays in the store.
The deleteNode function removes a node from the nodes array and any associated edges from the edges array.
The deleteEdge function removes an edge from the edges array.
This store can be used in components to access and manipulate the nodes and edges in a reactflow component.
fix(codeTabsComponent): remove unused imports and update import for FlowsContext
fix(headerComponent): remove unused imports and update import for FlowsContext, useDarkStore, and remove darkContext
fix(tagsSelectorComponent): remove unused import and update import for useDarkStore
refactor(darkStore): move darkContext functionality to a separate zustand store called darkStore
refactor(index.tsx): remove import for darkContext and DarkProvider
fix(codeAreaModal): remove unused imports and update import for useDarkStore
feat(darkStore): add zustand store for managing dark mode state, stars count, and gradient index
feat(darkStore): fetch and set stars count from API in darkStore
feat(darkStore): generate and set random gradient index in darkStore
feat(darkStore): add updateDark, updateStars, and updateGradientIndex actions to darkStore
feat(darkStore): initialize dark mode state, stars count, and gradient index in darkStore
feat(darkStore): fetch and set stars count from API in darkStore
feat(darkStore): generate and set random gradient index in darkStore
feat(darkStore): add updateDark, updateStars, and updateGradientIndex actions to darkStore
feat(darkStore): initialize dark mode state, stars count, and gradient index in darkStore
### Pull Request for Issue #1246
**Description**,
This pull request addresses issue #1246, which proposes the addition of
a self-query retriever according to the LangChain Vectara integration.
The self-query retriever aims to empower users with the ability to
perform queries directly within the Vectara component(vector store).
**Changes Made**
I have added one more file under
`src\backend\langflow\components\retrievers` which contains a new
VectaraSelfQueryRetriverComponent class
**Files Added:** VectaraSelfQueryRetriever.py
**langchain documentation for this component:**
https://python.langchain.com/docs/integrations/retrievers/self_query/vectara_self_query
fix(chatInput): add condition to check if chatValue is an empty object before displaying message
fix(chatMessage): remove useMemo hook and fix condition to check if chat message is empty before displaying message
fix(formModal): add conditions to check if thought and files exist before updating chat object
fix(genericModal): add condition to check if inputVariables exist before displaying notice or success message
### Pull Request for Issue #1217
[feature
request](https://github.com/logspace-ai/langflow/labels/feature%20request)
[python](https://github.com/logspace-ai/langflow/labels/python)
**Description**
This pull request addresses issue #1217 , which concerns the ability to
add files directly to the Vectara vector store using the indexing API's
file upload feature.
**Changes Made**
I have implemented the ability to add files directly to the Vectara
vector store by providing URLs of documents online. The add_files()
method (as well as from_files()) has been added to facilitate this
functionality.
**Files Modified/Added**
Modified: vectara.py