Commit graph

7,739 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
bf30d158c3 Bump version to 0.6.5a0 in pyproject.toml 2024-01-14 15:24:02 -03:00
Gabriel Luiz Freitas Almeida
2d087c6ce2
Add experimental preload endpoint (#1331)
This endpoint allows the Graph to be kept preprocessed in a session.
2024-01-14 15:23:02 -03:00
Gabriel Luiz Freitas Almeida
be83ffb0e7 Add Optional parameter to load_session method 2024-01-14 15:21:59 -03:00
Gabriel Luiz Freitas Almeida
2a69254eda Add build_graph_and_generate_result function to process.py 2024-01-14 15:21:51 -03:00
Gabriel Luiz Freitas Almeida
0b68decdfc Add PreloadResponse schema 2024-01-14 15:21:46 -03:00
Gabriel Luiz Freitas Almeida
a562c1f98e Refactor API endpoints and add preload functionality 2024-01-14 15:21:43 -03:00
Gabriel Luiz Freitas Almeida
7b1f30ea80 Refactor LangflowApplication constructor 2024-01-14 15:21:39 -03:00
Gabriel Luiz Freitas Almeida
5c4b2a55de Update main.py with FastAPI configuration 2024-01-14 15:21:34 -03:00
Gabriel Luiz Freitas Almeida
88c75e29b2 Import multiprocessing and fix run_langflow function 2024-01-14 15:21:30 -03:00
cristhianzl
3b3bfc9b5a fixing scroll-overflow on react flow 2024-01-11 17:59:45 -03:00
cristhianzl
2986741e61 style(App.css): add overflow: hidden to body to prevent horizontal scrolling
style(App.css): remove unnecessary auto values for width, height, and border-radius in .react-flow__node class
2024-01-11 17:48:11 -03:00
Gabriel Luiz Freitas Almeida
13fdc62fde
Added OllamaEmbeddings component with documentation (#1309)
Ollama embeddings are useful to enhance langflow's support of Ollama,
allowing users to run LLMs such as Mistral and LLama locally. Langchain
documentation can be found via [this
link](https://python.langchain.com/docs/integrations/text_embedding/ollama).

Changes:

- New `OllamaEmbeddingsComponent` class
- Associated documentation in the `Embeddings` section
2024-01-11 12:04:46 -03:00
Gabriel Luiz Freitas Almeida
78c32b9b5a
Added AzureOpenAIEmbeddings component (#1293)
I have added AzureOpenAIEmbeddings component on Embeddings.
2024-01-11 12:04:18 -03:00
Gabriel Luiz Freitas Almeida
aac9ab2c5c
Update AzrueChatOpenAI component. Change api_version to option field … (#1288)
In order to reduce user’s operating steps, I change "api_version" to
option field and select the latest version by default.
2024-01-11 12:03:53 -03:00
cristhianzl
60445d3af0 fix(authContext.tsx): fix condition in logout function to check for autoLogin instead of isAuthenticated to prevent unnecessary logout 2024-01-11 10:02:50 -03:00
cristhianzl
c54c080629 fix(authContext.tsx): add check for isAuthenticated before attempting to logout to prevent unnecessary logout calls 2024-01-11 10:02:26 -03:00
cristhianzl
d250bf868b fix(headerComponent): handle case where stars is null by displaying 0 instead to prevent rendering issues 2024-01-11 09:52:02 -03:00
cristhianzl
2899eacdc9 lock 2024-01-10 22:49:04 -03:00
cristhianzl
3babfedc05 lock 2024-01-10 11:04:09 -03:00
cristhianzl
e4af344c0c reverting changes signals 2024-01-09 17:31:15 -03:00
cristhianzl
448c69c038 refactor(EditNodeModal): remove console.log statement for myData.value to improve code cleanliness 2024-01-09 10:10:21 -03:00
cristhianzl
3a7d07916a chore(package.json): add "@preact/signals-react" dependency to package.json
feat(EditNodeModal): use signals-react library for state management and add support for dynamic updates of myData value
2024-01-09 10:09:35 -03:00
Cyrus Pellet
37ced42f56 Added OllamaEmbeddings component with documentation 2024-01-09 13:16:07 +01:00
anovazzi1
b80cad7d9d fix(authAdminGuard): remove unnecessary promise return in logout function call
fix(authGuard): remove unnecessary promise return in logout function call
fix(headerComponent): remove unnecessary promise return in logout function call
fix(authContext): add navigation to login page after logout
fix(api): remove unnecessary promise return in logout function call and add navigation to login page after logout
2024-01-08 16:51:56 -03:00
Lucas Oliveira
ad2351e3e7 removed location 2024-01-08 16:27:42 -03:00
Lucas Oliveira
c723924388 removed unused location store context 2024-01-08 16:22:32 -03:00
anovazzi1
d79915e7dc Remove unused Loading component and import statements 2024-01-08 16:08:07 -03:00
anovazzi1
dbfa18bb95 Fix login delay and add access token to every request 2024-01-08 16:07:31 -03:00
Lucas Oliveira
d26b4b4c11 Fixed past and future state on undo redo, removed loading on flow page 2024-01-08 15:58:58 -03:00
anovazzi1
d042b28c52 Add access token as a cookie in auto_login endpoint 2024-01-08 15:54:50 -03:00
anovazzi1
e9f5ad4017 Refactor code formatting 2024-01-08 15:35:40 -03:00
anovazzi1
a7427ef20b Update login.py to include request parameter in refresh_token endpoint 2024-01-08 15:35:10 -03:00
anovazzi1
2f91fc0b8f Merge branch 'cz/bug/state/zustand' of personal:logspace-ai/langflow into cz/bug/state/zustand 2024-01-08 15:34:27 -03:00
Lucas Oliveira
4ba94fbd29 set sse data when changing nodes and edges to empty 2024-01-08 15:32:47 -03:00
Lucas Oliveira
221776c2d4 Removed SSE Store and fixed node building not appearing at node 2024-01-08 15:31:18 -03:00
anovazzi1
6aaad2d2cd Revert "code format"
This reverts commit 8a0b240a7f.
2024-01-08 15:00:42 -03:00
Lucas Oliveira
41976f608e Fixed accordion button inside button 2024-01-08 14:34:26 -03:00
Lucas Oliveira
fe61802972 Fixed chatComponent not appearing after build 2024-01-08 14:27:50 -03:00
Lucas Oliveira
d1f82fa691 SSE Context moved to Zustand 2024-01-08 14:20:03 -03:00
Lucas Oliveira
c3304c4b6e Location Context moved to Zustand 2024-01-08 14:11:16 -03:00
Lucas Oliveira
e2a0990c06 Removed typesContext 2024-01-08 14:03:22 -03:00
Lucas Oliveira
31c80204eb Fix copy paste not being able to paste on other flow 2024-01-08 14:00:43 -03:00
anovazzi1
8a0b240a7f code format 2024-01-08 13:51:22 -03:00
anovazzi1
3d4200fc82 Add logout functionality to login API 2024-01-08 13:50:34 -03:00
anovazzi1
c7435c0c49 Revert "Refactor code and fix formatting issues"
This reverts commit 334ec24addf783990850b835d911ac778dfce6a2.
2024-01-08 13:39:32 -03:00
anovazzi1
f8f71fb603 Refactor code and fix formatting issues 2024-01-08 13:39:32 -03:00
anovazzi1
a76263097a Add cookies for access and refresh tokens 2024-01-08 13:38:58 -03:00
Gabriel Luiz Freitas Almeida
357cad48b9 Update lock 2024-01-06 16:27:39 -03:00
Gabriel Luiz Freitas Almeida
d2257441f5
Added Elasticsearch Vector Store (#1286)
In this pull request, I have:
- added Elasticsearch component on Vector Store
- functionality is basic to get started quickly

**Set up a Single-node Elasticsearch cluster on localhost on docker**
1. sudo docker network create elastic
2. sudo docker run --net elastic -p 9200:9200 -e
"discovery.type=single-node" -e "xpack.security.enabled=false" -e
"xpack.security.http.ssl.enabled=false" -d
docker.elastic.co/elasticsearch/elasticsearch:8.11.3
3. curl http://localhost:9200
   {
     "name" : "994a10c1dab5",
     "cluster_name" : "docker-cluster",
     "cluster_uuid" : "p_iQ88F-T2agFpIdzJN7Ow",
     "version" : {
       "number" : "8.11.3",
       "build_flavor" : "default",
       "build_type" : "docker",
       "build_hash" : "64cf052f3b56b1fd4449f5454cb88aca7e739d9a",
       "build_date" : "2023-12-08T11:33:53.634979452Z",
       "build_snapshot" : false,
       "lucene_version" : "9.8.0",
       "minimum_wire_compatibility_version" : "7.17.0",
       "minimum_index_compatibility_version" : "7.0.0"
     },
     "tagline" : "You Know, for Search"
   }
4. curl -GET http://localhost:9200/_cat/indices
   No indices are available

**Set up Langlow:**
1. make backend
2. make frontend
3. open localhost:3000
4. New Project -> Import from JSON: elasticsearch-langflow.json
**[elasticsearch-langflow.json](https://github.com/logspace-ai/langflow/files/13823444/elasticsearch-langflow.json)**
5. poetry add elasticsearch or pipenv install elasticsearch or pip
install elasticsearch
6. Select text file to load
7. Provide OpenAPI keys for OpenAIEmbeddings and ChatOpenAI
8. Build
9. Verify that document is indexed: curl -GET
http://localhost:9200/_cat/indices
health status index uuid pri rep docs.count docs.deleted store.size
pri.store.size dataset.size
yellow open test-index pt9_ZOACR8mWCNx7GO3scA 1 1 1 0 39.3kb 39.3kb
39.3kb
10. Open Chat and you can ask: "What is the document about?"
2024-01-06 16:23:51 -03:00
Gabriel Luiz Freitas Almeida
0c592c8f06
Merge branch 'dev' into vectorstores/elasticsearch 2024-01-06 16:23:42 -03:00