Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty committed Oct 1, 2023
1 parent ebcad6c commit 0e724c1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# type: ignore
"""
YAML Syllabi to YAML Table of Contents Generator
Expand Down Expand Up @@ -37,7 +38,7 @@

from sciphi.examples.library_of_phi.prompts import (
TABLE_OF_CONTENTS_PROMPT,
) # noqa
)
from sciphi.interface import InterfaceManager, ProviderName
from sciphi.llm import LLMConfigManager

Expand Down
31 changes: 16 additions & 15 deletions sciphi/examples/library_of_phi/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@
)


TABLE_OF_CONTENTS_PROMPT = """
### Instructions:
Below the course syllabus for {course_name} is shown as a yaml snippet.
```yaml
{context}
```
Pretend you are a prolific author, your task is to translate the shown syllabus into a very detailed Table of Contents for a new textbook that is meant to accompany the course.
Be sure to pick a fitting name for the textbook. Add additional topics so that the table of contents provides much more information than the original syllabus.
Return your final result in an easily parseable yaml format, your final yaml must match the above with course -> textbook, and topics -> chapters, subtopics -> sections, and an additional new key: subsubtopics -> subsections.
### Response:
"""


BOOK_FOREWARD_PROMPT = """
### Instructions:
You are a writing a book titled "{title}". You are currently writing the foreward for the book:
Expand Down Expand Up @@ -200,18 +216,3 @@
### Response:
"""

TABLE_OF_CONTENTS_PROMPT = """
### Instructions:
Below the course syllabus for {course_name} is shown as a yaml snippet.
```yaml
{context}
```
Pretend you are a prolific author, your task is to translate the shown syllabus into a very detailed Table of Contents for a new textbook that is meant to accompany the course.
Be sure to pick a fitting name for the textbook. Add additional topics so that the table of contents provides much more information than the original syllabus.
Return your final result in an easily parseable yaml format, your final yaml must match the above with course -> textbook, and topics -> chapters, subtopics -> sections, and an additional new key: subsubtopics -> subsections.
### Response:
"""

0 comments on commit 0e724c1

Please sign in to comment.