generated from rochacbruno/python-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ad795b
commit 248100b
Showing
5 changed files
with
106 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
""" | ||
Example | ||
""" | ||
from readme_ready.query import query | ||
from readme_ready.index import index | ||
from readme_ready.types import ( | ||
AutodocReadmeConfig, | ||
AutodocRepoConfig, | ||
AutodocUserConfig, | ||
LLMModels, | ||
) | ||
|
||
model = LLMModels.TINYLLAMA_1p1B_CHAT_GGUF # Choose model from supported models | ||
|
||
repo_config = AutodocRepoConfig ( | ||
name = "readmy_ready", | ||
root = "./readme_ready", | ||
repository_url = "https://github.com/souradipp76/ReadMeReady", | ||
output = "./output/readmy_ready", | ||
llms = [model], | ||
peft_model_path = None, | ||
ignore = [ | ||
".*", | ||
"*package-lock.json", | ||
"*package.json", | ||
"node_modules", | ||
"*dist*", | ||
"*build*", | ||
"*test*", | ||
"*.svg", | ||
"*.md", | ||
"*.mdx", | ||
"*.toml" | ||
], | ||
file_prompt = "", | ||
folder_prompt = "", | ||
chat_prompt = "", | ||
content_type = "docs", | ||
target_audience = "smart developer", | ||
link_hosted = True, | ||
priority = None, | ||
max_concurrent_calls = 50, | ||
add_questions = False, | ||
device = "cpu", | ||
) | ||
|
||
user_config = AutodocUserConfig( | ||
llms = [model] | ||
) | ||
|
||
readme_config = AutodocReadmeConfig( | ||
headings = "# Description, # Requirements, # Installation, # Usage, # Contributing, # License" | ||
) | ||
|
||
index.index(repo_config) | ||
query.generate_readme(repo_config, user_config, readme_config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters