fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
424 B

#!/usr/bin/env bash
# Prompt the user for a question
echo "Enter your question:"
read question
# Read the content from stdin
content=$(cat)
# Combine the content and the question
combined_input="Content: $content\nQuestion: $question"
# Call the AI module with the combined input
# You can replace this line with the appropriate command to call the AI module in your fabric project
echo "$combined_input" | fabric -p ai