fix to import statement PGSearchTool.md (#548)

fix to the import statement in PGSearchTool documentation
This commit is contained in:
Alex Fazio
2024-05-02 08:10:43 +02:00
committed by GitHub
parent 4d9b0c6138
commit 48f53b529b

View File

@@ -19,7 +19,7 @@ pip install 'crewai[tools]'
Below is a proposed example showcasing how to use the PGSearchTool for conducting a semantic search on a table within a PostgreSQL database: Below is a proposed example showcasing how to use the PGSearchTool for conducting a semantic search on a table within a PostgreSQL database:
```python ```python
rom crewai_tools import PGSearchTool from crewai_tools import PGSearchTool
# Initialize the tool with the database URI and the target table name # Initialize the tool with the database URI and the target table name
tool = PGSearchTool(db_uri='postgresql://user:password@localhost:5432/mydatabase', table_name='employees') tool = PGSearchTool(db_uri='postgresql://user:password@localhost:5432/mydatabase', table_name='employees')
@@ -57,4 +57,4 @@ tool = PGSearchTool(
), ),
) )
) )
``` ```