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

Feature/client/raas #1018

Open
wants to merge 23 commits into
base: Feature/#959
Choose a base branch
from
Open

Feature/client/raas #1018

wants to merge 23 commits into from

Conversation

hongsw
Copy link
Collaborator

@hongsw hongsw commented Nov 30, 2024

image

vkehfdl1 and others added 12 commits November 29, 2024 20:06
- Added `ex1.py`, which includes functions for setting up RAG pipeline, querying RAG, and a main function to run the process.
- Created `requirements.txt` listing necessary dependencies: `openai>=1.0.0`, `jinja2>=3.0.0`, and `autorag-client>=0.1.0`.
This commit introduces the AutoRAG client and relevant models for project management. It includes the `AutoRAGClient`, `Project`, `RAGPipeline`, `RetrievalResults`, `Retrieval`, `APIError`, and `AuthenticationError` classes, along with their respective functionalities and methods. Additionally, it sets up logging configurations based on the environment variable `AUTORAG_ENV`. The commit also updates the dependencies in `pyproject.toml` to include necessary client modules like `requests` and `aiohttp`.
…, file uploads, embeddings, RAG pipeline creation, and querying.
- Added `exceptions.py` to include custom exceptions for the AutoRAG client: `AutoRAGClientError`, `AuthenticationError`, and `APIError`.
This commit introduces the initial setup for an AutoRAG client example implementation. It includes functionalities to set up RAG pipelines, query the RAG pipeline with a question, and print relevant information. Key additions encompass setting up the RAG prompt template, initializing the RAG pipeline, querying the RAG pipeline, and evaluating the system.

Changes:
- Added a new Python file `ex1.py` containing functions to setup and query RAG pipelines.
- Added a shell script `copy_example_pdf.sh` to copy PDF files to a specified directory.
- Included a `requirements.txt` file listing dependencies such as `openai`, `jinja2`, and `autorag-client`.
@hongsw
Copy link
Collaborator Author

hongsw commented Nov 30, 2024

#1019

@hongsw hongsw self-assigned this Nov 30, 2024
@hongsw hongsw added the Client label Nov 30, 2024
@hongsw
Copy link
Collaborator Author

hongsw commented Nov 30, 2024

image

Base automatically changed from Feature/#984 to Feature/#959 December 1, 2024 09:03
@vkehfdl1 vkehfdl1 linked an issue Dec 2, 2024 that may be closed by this pull request
@hongsw hongsw marked this pull request as ready for review December 13, 2024 05:42
Copy link
Contributor

@vkehfdl1 vkehfdl1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really done?


This is the client for AutoRAG Studio Cloud.

To register this, please contact to Jeffrey Kim. ([email protected])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to change the e-mail address to [email protected]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@@ -0,0 +1,2 @@
AUTORAG_API_KEY=ar-kkhDPdtr1VciePOQR-N7Y_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real api key seems unsafe. Is it real api key????

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not real key

Comment on lines +22 to +24
awslogs-region: ap-northeast-2 # AWS 리전
awslogs-group: /docker/autorag-api-vmonster # CloudWatch 로그 그룹
awslogs-create-group: 'true' # 로그 그룹 자동 생성
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The awslogs region and the group cannot specify on the open source version.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the opensource version, it doesn't need it. I will remove it.

@hongsw
Copy link
Collaborator Author

hongsw commented Dec 20, 2024

originally, this client is for SaaS. I will change for AutoRAG api.

  • remove key
  • client compatible for AutoRAG API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] AutoRAG RaaS Clinet
2 participants