diff --git a/docs/docs/contributing/how-contribute.md b/docs/docs/contributing/how-contribute.md index ba9223fec..ff0df55a6 100644 --- a/docs/docs/contributing/how-contribute.md +++ b/docs/docs/contributing/how-contribute.md @@ -15,7 +15,7 @@ Please do not try to push directly to this repo unless you are a maintainer. You can develop Langflow using docker compose, or locally. -We provide a .vscode/launch.json file for debugging the backend in VSCode, which is a lot faster than using docker compose. +We provide a `.vscode/launch.json` file for debugging the backend in VSCode, which is a lot faster than using docker compose. Setting up hooks: diff --git a/docs/docs/tutorials/rag-with-astradb.mdx b/docs/docs/tutorials/rag-with-astradb.mdx index 5db16db8e..a80268376 100644 --- a/docs/docs/tutorials/rag-with-astradb.mdx +++ b/docs/docs/tutorials/rag-with-astradb.mdx @@ -146,7 +146,7 @@ The RAG flow is a bit more complex. It consists of: style={{ width: "80%", margin: "20px auto" }} /> -To run it all we have to do is click on the 🤖 _Playground_ button and start interacting with your RAG application. +To run it all we have to do is click on the **![Playground icon](/logos/botmessage.svg)Playground** button and start interacting with your RAG application. -This opens the Playground where you can chat your data. +This opens the Playground where you can chat with your data. Because this flow has a **Chat Input** and a **Text Output** component, the Panel displays a chat input at the bottom and the Extracted Chunks section on the left. diff --git a/src/backend/base/langflow/api/v1/chat.py b/src/backend/base/langflow/api/v1/chat.py index 004517575..0264dfca7 100644 --- a/src/backend/base/langflow/api/v1/chat.py +++ b/src/backend/base/langflow/api/v1/chat.py @@ -184,7 +184,7 @@ async def build_vertex( result_data_response = ResultDataResponse(**result_dict.model_dump()) except Exception as exc: - logger.exception(f"Error building vertex: {exc}") + logger.exception(f"Error building Component: {exc}") params = format_exception_message(exc) valid = False log_obj = Log(message=params, type="error") @@ -238,7 +238,7 @@ async def build_vertex( ) return build_response except Exception as exc: - logger.error(f"Error building vertex: {exc}") + logger.error(f"Error building Component: {exc}") logger.exception(exc) message = parse_exception(exc) raise HTTPException(status_code=500, detail=message) from exc @@ -333,7 +333,7 @@ async def build_vertex_stream( raise ValueError(f"No result found for vertex {vertex_id}") except Exception as exc: - logger.exception(f"Error building vertex: {exc}") + logger.exception(f"Error building Component: {exc}") exc_message = parse_exception(exc) if exc_message == "The message must be an iterator or an async iterator.": exc_message = "This stream has already been closed." @@ -344,4 +344,4 @@ async def build_vertex_stream( return StreamingResponse(stream_vertex(), media_type="text/event-stream") except Exception as exc: - raise HTTPException(status_code=500, detail="Error building vertex") from exc + raise HTTPException(status_code=500, detail="Error building Component") from exc diff --git a/src/backend/base/langflow/graph/graph/base.py b/src/backend/base/langflow/graph/graph/base.py index b47b718b3..285f841aa 100644 --- a/src/backend/base/langflow/graph/graph/base.py +++ b/src/backend/base/langflow/graph/graph/base.py @@ -774,7 +774,7 @@ class Graph: log_transaction(flow_id, vertex, status="success") return next_runnable_vertices, top_level_vertices, result_dict, params, valid, artifacts, vertex except Exception as exc: - logger.exception(f"Error building vertex: {exc}") + logger.exception(f"Error building Component: {exc}") flow_id = self.flow_id log_transaction(flow_id, vertex, status="failure", error=str(exc)) raise exc diff --git a/src/backend/base/langflow/graph/vertex/base.py b/src/backend/base/langflow/graph/vertex/base.py index 86cf9cd4e..427512e5f 100644 --- a/src/backend/base/langflow/graph/vertex/base.py +++ b/src/backend/base/langflow/graph/vertex/base.py @@ -577,7 +577,7 @@ class Vertex: logger.exception(e) raise ValueError( f"Params {key} ({self.params[key]}) is not a list and cannot be extended with {result}" - f"Error building vertex {self.display_name}: {str(e)}" + f"Error building Component {self.display_name}: {str(e)}" ) from e def _handle_func(self, key, result): @@ -618,7 +618,7 @@ class Vertex: except Exception as exc: logger.exception(exc) - raise ValueError(f"Error building vertex {self.display_name}: {str(exc)}") from exc + raise ValueError(f"Error building Component {self.display_name}: {str(exc)}") from exc def _update_built_object_and_artifacts(self, result): """