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/kb/worker #43

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Feature/kb/worker #43

wants to merge 10 commits into from

Conversation

gourab-aiplanet
Copy link
Contributor

@gourab-aiplanet gourab-aiplanet commented Jul 11, 2024

Example: 
researcher = Worker(
        role="Research Analyst",
        instructions="""
            Uncover cutting-edge developments in AI and data science. You work at a leading tech think tank. Your expertise lies in identifying emerging trends. 
            You have a knack for dissecting complex data and presenting actionable insights. Always utilize the knowledge base available to you first before conducting 
            any new research. Ensure that any information gathered is cross-referenced with the knowledge base for accuracy and completeness.
            """
    )

    # Initialize and load knowledge
    researcher.load_knowledge_from_source(data_source=DataSource(
        type=DataType.PDF,
        url="/Users/gourabsinha/Desktop/AiPlanet/codebase/openagi/example/Generative AI in Research_ Cornell Task Force Report-Dec2023.pdf",
        ),
       n_results=4
    )

Copy link
Contributor

@shreehari-aiplanet shreehari-aiplanet left a comment

Choose a reason for hiding this comment

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

  • Please format all the files with ruff
  • Format the imports of the files & remove unused imports using ruff.

src/openagi/data_extractors/data_loaders.py Outdated Show resolved Hide resolved
src/openagi/agent.py Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@shreehari-aiplanet shreehari-aiplanet left a comment

Choose a reason for hiding this comment

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

Few files still need to be formatted.

src/openagi/worker.py Outdated Show resolved Hide resolved
Copy link
Contributor

@shreehari-aiplanet shreehari-aiplanet left a comment

Choose a reason for hiding this comment

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

Below files are not formatted:

  • src/openagi/actions/data_source.py
  • src/openagi/actions/tools/__init__.py
  • src/openagi/actions/data_types.py

Rest looks good to me. You can Squash and Merge after making the above changes.

src/openagi/worker.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants