Commit graph

5,370 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
79c20ec46b Update create_engine method to include max_overflow parameter 2024-01-15 19:24:56 -03:00
Gabriel Luiz Freitas Almeida
7fc32b342a Refactor imports and initialize services in __main__.py 2024-01-14 18:15:56 -03:00
Gabriel Luiz Freitas Almeida
e75f5f4745 Refactor run_on_mac_or_linux function and remove unused imports 2024-01-14 18:14:40 -03:00
Gabriel Luiz Freitas Almeida
71bb7c18e4 Refactor process_graph_cached function 2024-01-14 17:50:03 -03:00
Gabriel Luiz Freitas Almeida
73f87dd611 Fix memory inputs and update function arguments 2024-01-14 17:49:28 -03:00
Gabriel Luiz Freitas Almeida
54c40c670a Add support for running on Linux using gunicorn 2024-01-14 16:01:50 -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
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
Cyrus Pellet
37ced42f56 Added OllamaEmbeddings component with documentation 2024-01-09 13:16:07 +01:00
Gabriel Luiz Freitas Almeida
0c592c8f06
Merge branch 'dev' into vectorstores/elasticsearch 2024-01-06 16:23:42 -03:00
coolgo0811
b2bb23402b Add AzureOpenAIEmbeddings component 2024-01-05 11:24:07 +08:00
coolgo0811
1ecb97fd52 Update AzrueChatOpenAI component. Change api_version to option field and select the latest version by default. 2024-01-04 16:56:56 +08:00
abhatt
5ad13e0475 Added Elasticsearch Vector Store 2024-01-03 12:39:17 -08:00
Gabriel Luiz Freitas Almeida
7c6ee78c4a Refactor AmazonBedrockComponent cache parameter 2024-01-03 11:20:15 -03:00
Gabriel Luiz Freitas Almeida
7f37dcf7bc Refactor ChatDefinition class to use prompt_template instead of prompt 2024-01-02 23:30:57 -03:00
Gabriel Luiz Freitas Almeida
99ef882801 Refactor process_graph function to handle ChatDefinition with dict output key 2024-01-02 23:19:55 -03:00
Gabriel Luiz Freitas Almeida
c2da021cac Refactor ChatAdapter to ChatDefinition 2024-01-02 23:15:33 -03:00
Gabriel Luiz Freitas Almeida
8421e60f10 Refactor chat utils module 2024-01-02 23:15:27 -03:00
Gabriel Luiz Freitas Almeida
51fa0f22e0 Add GenericPromptTemplate class to handle different prompt template types 2024-01-02 22:36:32 -03:00
Gabriel Luiz Freitas Almeida
2312227766 Add ChatAdapter class to utils/chat.py 2024-01-02 22:36:26 -03:00
Gabriel Luiz Freitas Almeida
e69f3cfdef Add support for different types of build_result in process_graph function 2024-01-02 22:36:17 -03:00
Gabriel Luiz Freitas Almeida
a901f89cd5 Refactor ChatService process_message method 2024-01-02 22:28:07 -03:00
Gabriel Luiz Freitas Almeida
5e615c0c14 Refactor AmazonBedrockComponent class in AmazonBedrock.py 2024-01-02 10:16:14 -03:00
Gabriel Luiz Freitas Almeida
d9fe8c838d Refactor ChatOllamaEndpoint.py 2023-12-29 11:00:34 -03:00
Gabriel Luiz Freitas Almeida
82a33ec7b6
add ChatOllama LLM (#1235)
This is a draft of a custom component to access the Ollama API endpoint.
2023-12-29 10:57:22 -03:00
Gabriel Luiz Freitas Almeida
5e0d30a7f6
Adding Vectara Self Query Retriever - feature request (#1249)
### 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
2023-12-29 10:56:18 -03:00
cristhianzl
58eebab84b fix(dropdownComponent): add condition to check if options object is empty before rendering dropdown component
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
2023-12-28 10:57:02 -03:00
yamonkjd
e9cd339278
Update ChatOllamaEndpoint.py 2023-12-26 18:57:40 +09:00
yamonkjd
3b6672e06d
Update OllamaLLM.py 2023-12-26 18:57:27 +09:00
Atharva J
5df7319bd8 for test cases 2023-12-26 01:28:21 +05:30
Atharva J
6720b2c058 VectaraSelfQueryRetriverComponent 2023-12-26 01:19:00 +05:30
Gabriel Luiz Freitas Almeida
a27c7221bb
Vectara Component Update - feature enhancement (#1219)
### 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
2023-12-24 20:04:38 -03:00
Gabriel Luiz Freitas Almeida
04fde52a21 Fix param overwrite issue in Vertex class 2023-12-22 17:07:19 -03:00
yamonkjd
6c0b4fb416
Merge branch 'logspace-ai:dev' into Add-Ollama-LLM 2023-12-23 03:58:56 +09:00
yamonkjd
c303bf3d49
Create OllamaLLM.py 2023-12-23 03:58:36 +09:00
yamonkjd
bea5065237
Update ChatOllamaEndpoint.py 2023-12-23 03:57:38 +09:00
Gabriel Luiz Freitas Almeida
3d4b9a81a3 Refactor imports and update Result model 2023-12-22 11:21:48 -03:00
Gabriel Luiz Freitas Almeida
b900b6dd55 Remove validate 2023-12-22 11:21:42 -03:00
Gabriel Luiz Freitas Almeida
f7ae3ae852 Refactor process_inputs function to handle optional inputs and artifacts 2023-12-22 10:53:53 -03:00
Gabriel Luiz Freitas Almeida
d07150ad17 Update worker.py with typing changes 2023-12-22 10:53:46 -03:00
Gabriel Luiz Freitas Almeida
010a045448 Update typing imports and add logger import 2023-12-22 10:46:47 -03:00
Gabriel Luiz Freitas Almeida
75493bbdea Refactor process_inputs function to handle both dict and list inputs 2023-12-22 10:46:35 -03:00