Commit graph

5,693 commits

Author SHA1 Message Date
anovazzi1
e4e5b06185 fix(App.tsx): import getGlobalVariables function from API controller to fix missing import error
feat(App.tsx): add support for fetching global variables and setting them in the global variables store
feat(App.tsx): add useGlobalVariablesStore hook to access and set global variables in the component
feat(addNewVariableButton.tsx): create a new component for adding a new variable
feat(GlobalVariablesPage.tsx): create GlobalVariablesPage component to display and manage global variables
feat(routes.tsx): add route for GlobalVariablesPage component
feat(globalVariables.ts): update globalVariables store to include globalVariablesEntries array and modify setGlobalVariables function to set both globalVariables and globalVariablesEntries
feat(index.ts): add types for globalVariables store
2024-02-05 15:47:31 -03:00
igorrCarvalho
f30c1df9bf Feat: make input dropdown filter with text 2024-02-05 14:53:47 -03:00
anovazzi1
c1d9e12956 Add global variables store using Zustand 2024-02-05 14:45:47 -03:00
anovazzi1
0a0f35cdac Add global variable API functions 2024-02-05 14:16:40 -03:00
igorrCarvalho
1be52e253a Fix: arrow icon dont appear in dropdown 2024-02-05 14:09:33 -03:00
igorrCarvalho
5eef2774a2 Remove blank space 2024-02-05 11:45:35 -03:00
igorrCarvalho
ccb7947b40 Merge branch 'dropdownInput' into globalVariables 2024-02-05 11:43:19 -03:00
igorrCarvalho
86ccae87fb Feat: make text input capable of support dropdown inputs also 2024-02-05 11:42:08 -03:00
anovazzi1
8023332260
add vectara icon (#1389)
* adding vectara icon

* Add field_typing imports and source parameter to VectaraComponent

* Refactor Vectara imports and update dependencies

* Refactor VectaraSelfQueryRetriverComponent class and update field_config

* Remove None values and update template strings

* Add get_output_types_from_code method to DirectoryReader

* Refactor directory_reader.py and handle exception when getting output types from code

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-02-02 18:01:29 -03:00
Gabriel Luiz Freitas Almeida
c0c64c99c9 Update imports to use langchain_core.documents 2024-02-01 09:37:37 -03:00
Gabriel Luiz Freitas Almeida
7efa79af69 Fix formatting issues and update code style 2024-02-01 09:35:46 -03:00
Gabriel Luiz Freitas Almeida
42ce5b7112 Refactor RedisComponent to handle existing index in Redis 2024-02-01 09:35:46 -03:00
Gabriel Luiz Freitas Almeida
54df76096f
Merge branch 'dev' into fix/vectorstores/pgvector 2024-02-01 09:34:50 -03:00
Gabriel Luiz Freitas Almeida
1d46ba5d74
Merge branch 'dev' into fix/vectorstores/redis 2024-02-01 09:20:13 -03:00
Gabriel Luiz Freitas Almeida
8f9d3ce155
Fix AgentInitializer to has last statement of returning base class (#1301)
From the last update, AgentInitializer lost ability to chain another
AgentInitializer via tool.
Fix issue: https://github.com/logspace-ai/langflow/issues/1255
2024-02-01 09:18:04 -03:00
Gabriel Luiz Freitas Almeida
3a5e3f24af
chat websocket api support param token and x-api-key (#1339)
Currently, chat interfaces do not support x-api-key authentication. In
this modification, token or x-api-key authentication is supported
2024-02-01 09:16:16 -03:00
Gabriel Luiz Freitas Almeida
e61e4ac51b
Update Langchain to 0.1 and migrate most components to CustomComponent (#1382)
This PR updates Langchain to 0.1.* and move components previously
created automatically to start using the CustomComponent framework.

This will improve maintainability and move Langflow to be closer to the
framework.
2024-01-31 17:43:18 -03:00
Gabriel Luiz Freitas Almeida
339029cd5b Update import statement for retrievers module 2024-01-31 17:33:32 -03:00
Gabriel Luiz Freitas Almeida
57c09c3409 Add unique constraints and foreign key for user_id in flow table 2024-01-31 17:09:16 -03:00
Gabriel Luiz Freitas Almeida
2076f32704 Merge branch 'dev' into update_lc 2024-01-31 15:57:16 -03:00
Gabriel Luiz Freitas Almeida
cbf80c9fcd Delete document loader components 2024-01-31 15:50:24 -03:00
Gabriel Luiz Freitas Almeida
c54c7246b6 Update document loader imports 2024-01-31 15:50:04 -03:00
Lucas Oliveira
b49e0578d7 fix cursor position on safari 2024-01-31 11:54:08 +01:00
Lucas Oliveira
5984a45178 removed unused utils function 2024-01-31 11:37:11 +01:00
Lucas Oliveira
911257c92f Fix console error on code component 2024-01-31 11:31:24 +01:00
Lucas Oliveira
abe597823b Fixed undoing not fixing group edges 2024-01-31 11:23:16 +01:00
Lucas Oliveira
f93724eb44 Fixed takeSnapshot deleting history if snapshot was equal to the previous 2024-01-31 11:18:33 +01:00
Lucas Oliveira
7ba2610184 refactored number of handles 2024-01-31 11:10:42 +01:00
Lucas Oliveira
cc548ba604 removed unused createFlowComponent 2024-01-31 10:56:55 +01:00
Lucas Oliveira
30709221ef removed direct attribution of official attribute 2024-01-31 10:54:47 +01:00
Lucas Oliveira
b3f5b25eba Removed direct attribution on data on updateFlowPosition 2024-01-31 10:52:36 +01:00
Gabriel Luiz Freitas Almeida
866e820ecb Import Document from langchain_core instead of langchain 2024-01-30 16:16:17 -03:00
Gabriel Luiz Freitas Almeida
43e3baaa84 Update import statements for langchain_community packages 2024-01-30 14:46:28 -03:00
Gabriel Luiz Freitas Almeida
4b697fc0df Remove vectorstore_creator import and test_vectorstore_template.py 2024-01-30 14:03:33 -03:00
Gabriel Luiz Freitas Almeida
09354748cd Update Pinecone.py to remove default value for "embedding" configuration 2024-01-30 09:16:38 -03:00
Gabriel Luiz Freitas Almeida
05588767e8 Refactor PineconeComponent in Pinecone.py 2024-01-30 09:16:04 -03:00
anovazzi1
2aa273166d Fix input fields behavior when node is not selected 2024-01-29 17:36:00 -03:00
Gabriel Luiz Freitas Almeida
a5f91da7d4 Update cookie settings in login.py 2024-01-26 15:17:30 -03:00
Gabriel Luiz Freitas Almeida
e011d1f6dc Refactor import order and remove unnecessary samesite attribute in set_cookie() calls 2024-01-26 14:08:38 -03:00
Gabriel Luiz Freitas Almeida
01fef3733b Add unique constraints and new fixes 2024-01-26 13:37:00 -03:00
Gabriel Luiz Freitas Almeida
53844a5963 Delete ZeroShotAgent and CombineDocsChain components 2024-01-25 21:19:19 -03:00
Gabriel Luiz Freitas Almeida
5cf56ca7a8 Fix import errors and type annotations 2024-01-25 21:15:28 -03:00
Gabriel Luiz Freitas Almeida
d258e0faea Refactor OllamaLLM constructor parameters 2024-01-25 19:53:51 -03:00
anovazzi1
d43d9d3760 Update JsonAgent and ZeroShotAgent components 2024-01-25 19:14:58 -03:00
anovazzi1
fa4a01caed chore(RetrievalQAWithSourcesChain.py): reorder imports to improve readability and maintain consistency
chore(AZLyricsLoader.py): reorder imports to improve readability and maintain consistency

chore(AirbyteJSONLoader.py): reorder imports to improve readability and maintain consistency

chore(CoNLLULoader.py): add import for List from typing module to fix type hinting

chore(CollegeConfidentialLoader.py): add import for List from typing module to fix type hinting

chore(EverNoteLoader.py): reorder imports to improve readability and maintain consistency

chore(FacebookChatLoader.py): add import for List from typing module to fix type hinting

chore(GitbookLoader.py): reorder imports to improve readability and maintain consistency

chore(HNLoader.py): add import for List from typing module to fix type hinting

chore(IMSDbLoader.py): add import for List from typing module to fix type hinting

chore(TextLoader.py): reorder imports to improve readability and maintain consistency

chore(CohereEmbeddings.py): change default value of cohere_api_key parameter to an empty string

chore(OpenAIEmbeddings.py): change default values of allowed_special, disallowed_special, chunk_size, embedding_ctx_length, max_retries, show_progress_bar, skip_empty, and tikToken_enable parameters to their respective types
2024-01-25 19:11:06 -03:00
anovazzi1
8bff60d2f2 feat(llms): Add support for using SecretStr from pydantic to store sensitive API keys securely
feat(llms): Add support for using process.env.PORT environment variable to configure server port

fix(llms): Fix incorrect default value for model_kwargs parameter in AnthropicComponent

fix(llms): Fix incorrect default value for model_kwargs parameter in ChatAnthropicComponent

fix(llms): Fix incorrect default value for model_kwargs parameter in ChatOpenAIComponent

fix(llms): Fix incorrect default value for model_kwargs parameter in ChatVertexAIComponent

fix(llms): Fix incorrect default value for model_kwargs parameter in CohereComponent

fix(llms): Fix incorrect default value for model_kwargs parameter in LlamaCppComponent

fix(llms): Fix incorrect default value for model_kwargs parameter in VertexAIComponent

fix(utilities): Fix incorrect default value for k parameter in BingSearchAPIWrapperComponent

fix(vectorstores): Fix missing required documents parameter in FAISSComponent

fix(vectorstores): Fix missing required documents parameter in PineconeComponent

fix(vectorstores): Fix missing required documents parameter in QdrantComponent
2024-01-25 18:54:01 -03:00
anovazzi1
9c06b16eb3 Fix default value for k parameter and add default value for searx_host parameter 2024-01-25 16:40:58 -03:00
anovazzi1
ce39b75c37 fix(components): fix import statement in UnstructuredWordDocumentLoader.py to use langflow instead of langchain
fix(vectorstores): change optional List[Document] parameters to required List[Document] in FAISS.py, Pinecone.py, Qdrant.py, and SupabaseVectorStore.py to improve consistency and avoid potential NoneType errors
2024-01-25 14:51:28 -03:00
Gabriel Luiz Freitas Almeida
a3cc0c7fa6 Fix imports and formatting issues 2024-01-24 19:57:58 -03:00
Gabriel Luiz Freitas Almeida
87d2db11ac Merge remote-tracking branch 'origin/dev' into update_lc 2024-01-24 19:22:22 -03:00