Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working #29

Merged
merged 15 commits into from
Oct 11, 2023
Merged

Working #29

merged 15 commits into from
Oct 11, 2023

Conversation

Daethyra
Copy link
Owner

No description provided.

renamed:    OpenAI/GPT-Prompt-Examples/Daethyra_Custom-Instruction_GPT4.md -> OpenAI/GPT-Prompt-Examples/MS-6_Daethyra_Custom-Instruction_GPT4.md
modified:   Project TODO List.md
modified:   README.md
By continually updating this repository as a codebase and conglomeration of documentation, it may serve as a `git clone`able neuron for machine learning models.

	renamed:    OpenAI/GPT-Prompt-Examples/ChatGPT_reference_chatlogs/links.txt -> .archive/ChatGPT_reference_chatlogs/links.txt
	renamed:    OpenAI/GPT-Prompt-Examples/ChatGPT_reference_chatlogs/shorthand-prompts.txt -> .archive/ChatGPT_reference_chatlogs/shorthand-prompts.txt
	modified:   README.md
	renamed:    Project TODO List.md -> todo.md
	new file:   HuggingFace/audio_transcription/at1.py
	new file:   HuggingFace/audio_transcription/requirements.txt
	new file:   .github/.gitignore
	new file:   HuggingFace/audio_transcription/MicrophoneTranscription/__init__.py
	new file:   HuggingFace/audio_transcription/MicrophoneTranscription/requirements.txt
	renamed:    HuggingFace/audio_transcription/at1.py -> HuggingFace/audio_transcription/MicrophoneTranscription/transcribe_microphone.py
	new file:   HuggingFace/audio_transcription/__pycache__/at1.cpython-38.pyc
	deleted:    HuggingFace/audio_transcription/requirements.txt
	new file:   HuggingFace/audio_transcription/test/__init__.py
	new file:   HuggingFace/audio_transcription/test/test_at1.py
	modified:   LangChain/Retrieval-Agents/qa_local_docs.py
	modified:   LangChain/Retrieval-Agents/stateful_chatbot.py
	modified:   OpenAI/Auto-Embedder/pinembed.py
Use type hints for function arguments and return values to improve code readability and maintainability: The code uses type hints for function arguments and return values throughout the file.

Use async with to manage resources like pinecone.Index and openai.Embedding to ensure that they are properly cleaned up after use: The code uses async with to manage resources like pinecone.Index and openai.Embedding to ensure that they are properly cleaned up after use.

Use asyncio.gather to run tasks concurrently instead of using a for loop to create tasks and then awaiting them one by one: The code uses asyncio.gather to run tasks concurrently instead of using a for loop to create tasks and then awaiting them one by one.

Use asyncio.sleep to avoid hitting rate limits when making API requests: The code uses asyncio.sleep to avoid hitting rate limits when making API requests.

Use a logger to log errors and other important information instead of printing to the console: The code uses a logger to log errors and other important information instead of printing to the console.

Use os.path.join to join file paths instead of using string concatenation: The code uses os.path.join to join file paths instead of using string concatenation.

Use os.path.isfile to check if a file exists instead of using a try-except block: The code uses os.path.isfile to check if a file exists instead of using a try-except block.

Use os.scandir instead of os.listdir to get a list of files in a directory as it is faster and returns an iterator instead of a list: The code uses os.scandir instead of os.listdir to get a list of files in a directory as it is faster and returns an iterator instead of a list.

Use asyncio.to_thread to run blocking I/O operations in a separate thread to avoid blocking the event loop: The code uses asyncio.to_thread to run blocking I/O operations in a separate thread to avoid blocking the event loop.

Use asyncio.shield to prevent tasks from being cancelled when the main task is cancelled: The code uses asyncio.shield to prevent tasks from being cancelled when the main task is cancelled.

Use asyncio.create_task to create tasks instead of asyncio.ensure_future as it is more efficient: The code uses asyncio.create_task to create tasks instead of asyncio.ensure_future as it is more efficient.

Use asyncio.wait_for to set a timeout for tasks that may take a long time to complete: The code uses asyncio.wait_for to set a timeout for tasks that may take a long time to complete.

Use asyncio.Lock to prevent multiple tasks from accessing a shared resource at the same time: The code uses asyncio.Lock to prevent multiple tasks from accessing a shared resource at the same time.

Use asyncio.Queue to pass data between tasks instead of using global variables: The code uses asyncio.Queue to pass data between tasks instead of using global variables.

Use asyncio.Event to signal when a task has completed instead of using a global variable: The code uses asyncio.Event to signal when a task has completed instead of using a global variable.
	modified:   OpenAI/Auto-Embedder/test.py
	modified:   HuggingFace/audio_transcription/MicrophoneTranscription/transcribe_microphone.py
	new file:   HuggingFace/audio_transcription/MicrophoneTranscription/run.py
	modified:   HuggingFace/audio_transcription/MicrophoneTranscription/transcribe_microphone.py
@Daethyra Daethyra self-assigned this Oct 11, 2023
@Daethyra Daethyra enabled auto-merge October 11, 2023 04:44
@Daethyra Daethyra added Documentation Adds/Edits documentation Feature/Functionality Feature suggestion or Functionality request Big Update labels Oct 11, 2023
@Daethyra Daethyra merged commit 6c8122d into master Oct 11, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Adds/Edits documentation Feature/Functionality Feature suggestion or Functionality request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant