diff --git a/examples/gemini/python/docs-agent/README.md b/examples/gemini/python/docs-agent/README.md index 26021768b..580d65eb9 100644 --- a/examples/gemini/python/docs-agent/README.md +++ b/examples/gemini/python/docs-agent/README.md @@ -374,7 +374,7 @@ To populate a new vector database: The command takes documents under the `inputs` fields (specified in your `config.yaml` file), splits the documents into small text chunk files, and - stores them in the `output_path` direcoty. + stores them in the `output_path` directory. 3. Create and populate a new vector database: diff --git a/examples/gemini/python/docs-agent/apps_script/drive_to_markdown.gs b/examples/gemini/python/docs-agent/apps_script/drive_to_markdown.gs index bf4b7f86f..5bfca82e3 100644 --- a/examples/gemini/python/docs-agent/apps_script/drive_to_markdown.gs +++ b/examples/gemini/python/docs-agent/apps_script/drive_to_markdown.gs @@ -75,7 +75,7 @@ function convertDriveFolder(folderName, outputFolderName="", indexFile="") { while (myfiles.hasNext()) { var myfile = myfiles.next(); var ftype = myfile.getMimeType(); - // If this is a shorcut, retrieve the target file + // If this is a shortcut, retrieve the target file if (ftype == "application/vnd.google-apps.shortcut") { var fid = myfile.getTargetId(); var myfile = DriveApp.getFileById(fid); @@ -105,7 +105,7 @@ function convertDriveFolder(folderName, outputFolderName="", indexFile="") { var furl = myfile.getUrl(); var fcreate = myfile.getDateCreated(); - //Function returns an array, assign each array value to seperate variables + //Function returns an array, assign each array value to separate variables var backup_results = returnBackupHash(sheet, "Backup", fid, start_data_row, 1, 9, 3); if (backup_results != undefined && backup_results[0] != "no_results") { var backup_fid = backup_results[0]; @@ -229,7 +229,7 @@ function convertDriveFolder(folderName, outputFolderName="", indexFile="") { status, ]; sheet.appendRow(metadata); - // Return final row to inserRichText into correct rows + // Return final row to insertRichText into correct rows row_number = sheet.getLastRow(); insertRichText(sheet, original_chip, "C", row_number); insertRichText(sheet, md_chip, "E", row_number); diff --git a/examples/gemini/python/docs-agent/apps_script/gmail_to_markdown.gs b/examples/gemini/python/docs-agent/apps_script/gmail_to_markdown.gs index 3263ef100..d0a02354a 100644 --- a/examples/gemini/python/docs-agent/apps_script/gmail_to_markdown.gs +++ b/examples/gemini/python/docs-agent/apps_script/gmail_to_markdown.gs @@ -66,7 +66,7 @@ function exportEmailsToMarkdown(search, folderName) { let md5_hash = Utilities.computeDigest(Utilities.DigestAlgorithm.MD5,hash_content, Utilities.Charset.US_ASCII); let hash_str = byteToStr(md5_hash); - //Function returns an array, assign each array value to seperate variables. For emails, only need to retrieve + //Function returns an array, assign each array value to separate variables. For emails, only need to retrieve // backup markdown ids var backup_results = returnBackupHash(sheet, "Backup", hash_str, start_data_row, 7, 4, 5); if (backup_results != undefined && backup_results[0] != "no_results") { diff --git a/examples/gemini/python/docs-agent/docs/cli-reference.md b/examples/gemini/python/docs-agent/docs/cli-reference.md index 7088cdeec..39d014eb1 100644 --- a/examples/gemini/python/docs-agent/docs/cli-reference.md +++ b/examples/gemini/python/docs-agent/docs/cli-reference.md @@ -176,7 +176,7 @@ agent helpme --file ``` Replace `REQUEST` with a prompt and `PATH_TO_FILE` with a file's -absolure or relative path, for example: +absolute or relative path, for example: ```sh agent helpme write comments for this C++ file? --file ../my-project/test.cc diff --git a/examples/gemini/python/docs-agent/docs_agent/interfaces/chatbot/chatui.py b/examples/gemini/python/docs-agent/docs_agent/interfaces/chatbot/chatui.py index 4b713050d..aa0d0ce37 100644 --- a/examples/gemini/python/docs-agent/docs_agent/interfaces/chatbot/chatui.py +++ b/examples/gemini/python/docs-agent/docs_agent/interfaces/chatbot/chatui.py @@ -341,7 +341,7 @@ def ask_model(question, agent, template: str = "chatui/index.html"): type(aqa_response_json).to_dict(aqa_response_json), indent=2 ) else: - # For the `gemini-*` model, alway use the Chroma database. + # For the `gemini-*` model, always use the Chroma database. if docs_agent.config.docs_agent_config == "experimental": results_num = 10 new_question_count = 5