Fix various issues and refactor code (#1671)

* Update setup_mode to "Sync" in AstraDBVectorStoreComponent

* Fix search_kwargs default value in PineconeSearch and QdrantSearch components

* Update Playwright test and ChatMessage component in chat_io.spec.ts and chatMessage/index.tsx

* Refactor test_pickle_each_vertex function in test_graph.py

* Refactor database service to improve performance and readability
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-04-10 22:40:21 -03:00 • committed by GitHub
commit 4ee9b72634
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 451 additions and 83 deletions

View file

@ -4,6 +4,7 @@ from uuid import uuid4
import pytest
from fastapi import status
from fastapi.testclient import TestClient
from langflow.interface.custom.directory_reader.directory_reader import DirectoryReader
from langflow.services.deps import get_settings_service
from langflow.template.frontend_node.chains import TimeTravelGuideChainNode
@ -447,7 +448,7 @@ def test_successful_run_no_payload(client, starter_project, created_api_key):
assert all([name in display_names for name in ["Chat Output"]])
inner_results = [output.get("results").get("result") for output in outputs_dict.get("outputs")]
assert all([len(result) > 0 for result in inner_results]), inner_results
assert all([result is not None for result in inner_results]), inner_results
def test_successful_run_with_output_type_text(client, starter_project, created_api_key):