Skip to content

Commit

Permalink
adding initial docs for structure as transform (#1172)
Browse files Browse the repository at this point in the history
Co-authored-by: Collin Dutter <[email protected]>
  • Loading branch information
emjay07 and collindutter authored Sep 17, 2024
1 parent c117166 commit 04057a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/griptape-cloud/data-sources/create-data-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ You can connect to your personal or company Confluence by providing a URL, [Atla

You can specify a [Structure](../structures/create-structure.md) to run as a Data Source as long as your Structure returns a [`TextArtifact` or `ListArtifact` from the Griptape Framework](../../griptape-framework/data/artifacts.md). You can use this as a way to build custom Data Sources.

## Other Data Source Types
### Other Data Source Types

If you do not see a Data Source configuration you'd wish to use, you can submit a request via [Discord](https://discord.gg/gnWRz88eym) or `[email protected]`.

## Adding Structure as Transform to Data Source (Experimental)

When creating any Data Source, you can optionally specify a [Structure](../structures/create-structure.md) to run as a transform step of your data ingetstion before loading into the vector store. Ensure the Structure you select to run as a transform is configured to take in a `ListArtifact` as its first positional argument and returns either a `TextArtifact` or `ListArtifact`.

Take a look at the [Find and Replace Sample Structure](https://github.com/griptape-ai/griptape-sample-structures/tree/main/griptape-find-replace-transform) for more details on how to implement this for your own Structure.

0 comments on commit 04057a1

Please sign in to comment.