aidocx

module
v0.0.0-...-c7f26b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2023 License: Apache-2.0

README

github release

aidocx: AI-Powered Knowledge Books: Generated from a Tree of Topics

alt aidocx flow

Translation

Installing

Download the release from Github

Prerequisites

Obtain an API key from OpenAI (Bard still does not provide a web API interface.)

Basic usage

This command will convert the "input.md" and "config.yaml" files in the current folder into an "output.epub" file.

aidocx -t epub ^
       -o output.epub ^
       -apikey-openai "paste-your-api-key" ^
       input.md

input.md: Tree list of knowledge points to learn.

- Machine Learning
  - Supervised Learning
    - Regression
      - Linear Regression
      - Polynomial Regression
      - Ridge Regression
      - Lasso Regression
  - Unsupervised Learning
    - Clustering

config.yaml: Tree list of knowledge points to learn.

apiProvider: OpenAI
apiModal: gpt-3.5-turbo-0301
initRole: Assuming you are an Machine Learning expert, answer my questions.
questions:
  - key: preview
    desc: Preview
    template: give me five question about {{ .keyword}}
  - key: explain
    desc: Explain
    template: Explain {{ .keyword}} and give an example
  - key: keypoint
    desc: Keypoint
    template: List the key points of {{ .keyword}}
  - key: review
    desc: Review
    template: Give me 5 medium-difficulty questions with answers about {{ .keyword}}

config.yaml attribute explain

  • apiProvider: API Provicer, ex: OpenAI
  • apiModal: Select the modal of API, ex: gpt-3.5-turbo, gpt-4-32k-0314
  • questions: Question Array
    • key: Key for cache answer
    • desc: Question description in output
    • template: Question template

Directories

Path Synopsis
cmd
internal
io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL