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

Update to 1.1.0 #89

Merged
merged 15 commits into from
Dec 18, 2023
Merged

Update to 1.1.0 #89

merged 15 commits into from
Dec 18, 2023

Conversation

Daethyra
Copy link
Owner

@Daethyra Daethyra commented Dec 10, 2023

- More of this work to be done when i start working on outdated logic in `src/llm_utilikit/hugging_face/*` & `src/llm_utilikit/open_ai/*`

Refactored the PDFProcessor class to accept a LangChainWrapper object for initializing retriever and embeddings. Also added logging configuration using Python's logging module for better error handling and information tracking.
Updated the project version to 1.0.223 in pyproject.toml. Additionally, restructured the LangChain/Retrieval_Augmented_Generation module by removing PyPDFLoader and introducing a new directory 'pdf_only' containing relevant files for PDF handling and retrieval augmented generation.

The commit also includes changes to the test_query_local_docs.py file to mock dependencies and update tests for the RAG chain invocation, document loading, and document embedding.
@Daethyra Daethyra linked an issue Dec 10, 2023 that may be closed by this pull request
@Daethyra Daethyra self-assigned this Dec 10, 2023
@Daethyra Daethyra added Documentation Adds/Edits documentation Quick Fix Refactorization No New Functionality; Refactored Code included labels Dec 10, 2023
@Daethyra

This comment was marked as outdated.

- Fixed some broken code
- Removed unuseful modules
- Deleted a useless prompt
- Rearranged prompts_MASTER file for sensibility
- Untested cell in src/llm_utilikit/LangChain/using_tools/generate_and_caption.ipynb
This commit removes deprecated files and dependencies related to LangChain's RAG with Agents, including unused Python scripts, READMEs, environment templates, and requirements.
	new file:   src/llm_utilikit/LangChain/chatbots/streamlit/requirements.txt
	new file:   src/llm_utilikit/LangChain/chatbots/streamlit/st_chat.py
	new file:   src/llm_utilikit/LangChain/chatbots/streamlit/st_with_memory.py
	renamed:    src/llm_utilikit/LangChain/Code Snippets/bufferwindow_memory.py -> src/llm_utilikit/LangChain/code-snippets/bufferwindow_memory.py
	renamed:    src/llm_utilikit/LangChain/Code Snippets/chatopenai.py -> src/llm_utilikit/LangChain/code-snippets/chatopenai.py
	renamed:    src/llm_utilikit/LangChain/Code Snippets/multi_vector_query_retrieval.py -> src/llm_utilikit/LangChain/code-snippets/multi_vector_query_retrieval.py
	new file:   src/llm_utilikit/LangChain/rag-with-agents/README.md
	new file:   src/llm_utilikit/LangChain/rag-with-agents/create_custom_rag_agent.py
	new file:   src/llm_utilikit/LangChain/rag-with-agents/directoryloader/.env.template
	new file:   src/llm_utilikit/LangChain/rag-with-agents/directoryloader/README.md
	renamed:    src/llm_utilikit/open_ai/embeddings_pinecone/__init__.py -> src/llm_utilikit/LangChain/rag-with-agents/directoryloader/__init__.py
	new file:   src/llm_utilikit/LangChain/rag-with-agents/directoryloader/qa_local_docs.py
	new file:   src/llm_utilikit/LangChain/rag-with-agents/directoryloader/run_qa_local_docs.py
	new file:   src/llm_utilikit/LangChain/rag-with-agents/pdf_only/README.md
	new file:   src/llm_utilikit/LangChain/rag-with-agents/pdf_only/__init__.py
	new file:   src/llm_utilikit/LangChain/rag-with-agents/pdf_only/query_local_docs.py
	new file:   src/llm_utilikit/LangChain/rag-with-agents/pdf_only/requirements.txt
	new file:   src/llm_utilikit/LangChain/rag-with-agents/streamlit_app.py
	new file:   src/llm_utilikit/LangChain/rag/pinecone/__init__.py
	new file:   src/llm_utilikit/LangChain/rag/pinecone/application.py
	new file:   src/llm_utilikit/LangChain/rag/pinecone/documentservice.py
	new file:   src/llm_utilikit/LangChain/rag/pinecone/main.py
	new file:   src/llm_utilikit/LangChain/rag/pinecone/vectorstoreservice.py
	modified:   src/llm_utilikit/LangChain/using_tools/generate_and_caption.ipynb
	deleted:    src/llm_utilikit/open_ai/API Documentation/API Reference - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/API Documentation/Chat completion - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/API Documentation/Embeddings - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/API Documentation/Error codes - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/API Documentation/Fine-tuning - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/API Documentation/Rate Limits - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/API Documentation/Safety best practices - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/API Documentation/Speech to text - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/API Documentation/Text completion - OpenAI API.pdf
	deleted:    src/llm_utilikit/open_ai/code_snippets/local_gpt4allapi_code_completion.py
	deleted:    src/llm_utilikit/open_ai/embeddings_pinecone/.env.template
	deleted:    src/llm_utilikit/open_ai/embeddings_pinecone/README.md
	deleted:    src/llm_utilikit/open_ai/embeddings_pinecone/pinembed.py
	deleted:    src/llm_utilikit/open_ai/embeddings_pinecone/requirements.txt
Updated README.md to remove unnecessary content and corrected formatting in prompt-cheatsheet.md. Renamed prompts_MASTER.md to docs/prompts_MASTER.md for better organization.

This commit enhances the clarity and organization of the project's documentation and prompt files, ensuring a more user-friendly experience and improved readability.
@Daethyra Daethyra changed the title Update to v1.0.223 Update to ~v1.0.223~ -> 1.1.0 Dec 18, 2023
@Daethyra Daethyra changed the title Update to ~v1.0.223~ -> 1.1.0 Update to ~~v1.0.223~~ -> 1.1.0 Dec 18, 2023
@Daethyra Daethyra changed the title Update to ~~v1.0.223~~ -> 1.1.0 Update to 1.1.0 Dec 18, 2023
@Daethyra Daethyra merged commit 50ff133 into master Dec 18, 2023
3 checks passed
@Daethyra Daethyra deleted the v1.0.223 branch December 18, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Adds/Edits documentation Refactorization No New Functionality; Refactored Code included
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion for query_local_docs.py code refactorization
1 participant