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

Migrate to 0.10.0 #368

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

Conversation

NikitaZotov
Copy link
Collaborator

No description provided.

Copy link

ellipsis-dev bot commented Feb 14, 2025

I couldn't find the pull request #368 in the 'nika' repository. Please verify the pull request details or check if it has been deleted or moved.

@NikitaZotov NikitaZotov force-pushed the feat/migrate_to_0.10.0 branch from 1cb3a70 to 05ec5aa Compare February 14, 2025 11:55
@NikitaZotov
Copy link
Collaborator Author

@ellipsis, give me a code review

Copy link

ellipsis-dev bot commented Feb 14, 2025

I'm currently unable to access the pull request for a review due to a technical issue. Please check if the pull request is open and accessible. If the issue persists, consider closing and reopening the pull request or reaching out for further assistance.

@NikitaZotov NikitaZotov force-pushed the feat/migrate_to_0.10.0 branch from 531b8f6 to cad365f Compare February 16, 2025 09:30
Comment on lines +28 to +40
RUN conan remote add ostis-ai https://conan.ostis.net/artifactory/api/conan/ostis-ai-library && \
conan profile detect && \
conan install . --build=missing

COPY . /nika
WORKDIR /nika/scripts
RUN --mount=type=cache,target=/ccache/ ./build_problem_solver.sh -r
# Install sc-machine binaries
RUN curl -LO https://github.com/ostis-ai/sc-machine/releases/download/0.10.0/sc-machine-0.10.0-Linux.tar.gz && \
mkdir -p install/sc-machine && tar -xvzf sc-machine-0.10.0-Linux.tar.gz -C install/sc-machine --strip-components 1 && \
rm -rf sc-machine-0.10.0-Linux.tar.gz && rm -rf install/sc-machine/include

FROM base as final
COPY --from=builder /nika/problem-solver/sc-machine/scripts /nika/problem-solver/sc-machine/scripts
COPY --from=builder /nika/problem-solver/sc-machine/requirements.txt /nika/problem-solver/sc-machine/requirements.txt
# Install scl-machine libraries
RUN curl -LO https://github.com/NikitaZotov/scl-machine/releases/download/0.3.0/scl-machine-0.3.0-Linux.tar.gz && \
mkdir -p install/scl-machine && tar -xvzf scl-machine-0.3.0-Linux.tar.gz -C install/scl-machine --strip-components 1 && \
rm -rf scl-machine-0.3.0-Linux.tar.gz && rm -rf install/scl-machine/include
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand why are they both used?
conan-ostis-ai is added to download sc- and scl-
and at the same time sc- and scl- are downloaded from github

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Previously, you could call agents in scl-machine by initiating an action. If we will allow to use the scl-machine as a Conan package only, we leave only the ability to explicitly call only DirectInferenceAgent from scl-machine in NIKA

Copy link
Collaborator

Choose a reason for hiding this comment

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

when I reviewed scl-machine pr after step 9 it was possible to create Replacements in another project
probably I am not understanding again
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't upload an updated version of the scl-machine package to the ostis-ai-library repository. If you want to check if you can use Replacements from scl-machine in another project, you can do it locally. They will be added when I make an official release

Copy link
Collaborator

Choose a reason for hiding this comment

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

what I meant is that I have built scl-machine and exported it and following this guide it was possible to use Replacements in a project
but your message suggested that conan package allows only agent calls
so I am confused because something is not adding up

Comment on lines +28 to +40
RUN conan remote add ostis-ai https://conan.ostis.net/artifactory/api/conan/ostis-ai-library && \
conan profile detect && \
conan install . --build=missing

COPY . /nika
WORKDIR /nika/scripts
RUN --mount=type=cache,target=/ccache/ ./build_problem_solver.sh -r
# Install sc-machine binaries
RUN curl -LO https://github.com/ostis-ai/sc-machine/releases/download/0.10.0/sc-machine-0.10.0-Linux.tar.gz && \
mkdir -p install/sc-machine && tar -xvzf sc-machine-0.10.0-Linux.tar.gz -C install/sc-machine --strip-components 1 && \
rm -rf sc-machine-0.10.0-Linux.tar.gz && rm -rf install/sc-machine/include

FROM base as final
COPY --from=builder /nika/problem-solver/sc-machine/scripts /nika/problem-solver/sc-machine/scripts
COPY --from=builder /nika/problem-solver/sc-machine/requirements.txt /nika/problem-solver/sc-machine/requirements.txt
# Install scl-machine libraries
RUN curl -LO https://github.com/NikitaZotov/scl-machine/releases/download/0.3.0/scl-machine-0.3.0-Linux.tar.gz && \
mkdir -p install/scl-machine && tar -xvzf scl-machine-0.3.0-Linux.tar.gz -C install/scl-machine --strip-components 1 && \
rm -rf scl-machine-0.3.0-Linux.tar.gz && rm -rf install/scl-machine/include
Copy link
Collaborator

Choose a reason for hiding this comment

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

when I reviewed scl-machine pr after step 9 it was possible to create Replacements in another project
probably I am not understanding again
image

Comment on lines +42 to +46
6. Run sc-web:

```sh
source .venv/bin/activate && python3 server/app.py
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

just all other steps are executed from project root


namespace dialogControlModule
namespace commonModule
Copy link
Collaborator

Choose a reason for hiding this comment

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

so now module with agents cannot be a dependency because agents will be registered 2 times?
but this does not happen with scl-machine, it is a dependency for dialog-control and message-classification
or you just assumed that this searcher belongs to common module and not dialog-control?

Copy link
Collaborator

@kilativ-dotcom kilativ-dotcom left a comment

Choose a reason for hiding this comment

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

I replied in threads

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.

2 participants