-
Notifications
You must be signed in to change notification settings - Fork 239
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
base: main
Are you sure you want to change the base?
Migrate to 0.10.0 #368
Conversation
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. |
1cb3a70
to
05ec5aa
Compare
@ellipsis, give me a code review |
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. |
531b8f6
to
cad365f
Compare
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
problem-solver/cxx/message-reply-module/agent/MessageReplyAgent.cpp
Outdated
Show resolved
Hide resolved
problem-solver/cxx/message-reply-module/agent/MessageReplyAgent.cpp
Outdated
Show resolved
Hide resolved
problem-solver/cxx/non-atomic-action-interpreter-module/CMakeLists.txt
Outdated
Show resolved
Hide resolved
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6. Run sc-web: | ||
|
||
```sh | ||
source .venv/bin/activate && python3 server/app.py | ||
``` |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
...r/cxx/dialog-control-module/test/tests-structures/standard-message-reply/logic-rules/lr1.scs
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
No description provided.