Running weaviate with a custom contextionary - weaviate

I want to run weaviate with my own custom contextionary. I already have a trained Glove embedding, can I use it as is or does it need anything specific to be able to use it in weaviate? And do you also support other models like Fasttext?
I read the documentation that describes to start weaviate with a custom contextionary using "docker build -t my-weaviate-image --build-arg CONTEXTIONARY_LOC ." But not sure if I have all the files needed

Related

Docfx failing on init command

I am trying to get docfx to generate a doc website based off of a C# library and I can't seem to get any of the commands covered in the documentation to work.
On the quickstart page it states to use the following command to initialize a template docfx init -q however when I run this command I get the following error message:
'init' was not matched. Did you mean 'new'?
'-q' was not matched. Did you mean '-h'?
Required command was not provided.
Unrecognized command or argument 'init'
Unrecognized command or argument '-q'
Usage:
docfx [options] [command]
Options:
--version Show version information
-?, -h, --help Show help and usage information
Commands:
new <templateName> Creates a new docset.
restore <directory> Restores dependencies before build.
build <directory> Builds a docset.
serve <directory> Serves content in a docset.
The documentation (as far as I can tell) doesn't cover the options displayed by the tools output. I have checked a number of times now to make sure I am not going insane but I definitely downloaded the package from the page listed on the quickstart page.
Does anyone regularly use Docfx and can tell me how to go about generating the html for my library?
Looks like you're using 3.x, which is undocumented.
You can download 2.59.2 here

Import Urho 3D Models

Recently i have to integrate into Xamarin.Forms a 3D Model view, i decided for Urho, but the issue is I havent found a simple tool that converts my .3ds or .fbx models, I tried with AssImp but always throws "assimp export: no output format specified and I failed to guess it", after i downloaded 3DGameStudio A7 and imported the models but URHO Says the format is not a model, there is a simple way to import the models without many steps?, what am i doing wrong ?
You can use our command line tool to export it. Just open a command-line prompt, navigate to your binary-folder containing assimp and use the following command:
assimp export box.3ds box.fbx
But you have to keep in mind, that the experimental fbx-export is currently only available on our current master. So you have to get the latest master from github and build the library from scratch.
Just follow our installation guide: INSTALL GUIDE

Promoting a specific Build in Artifactory to a different repository

Can I get some help on promoting a build using REST API with cURL command.
I have been successful in updating the status using the below syntax:
curl -X POST -u admin:password -H "Content-Type: application/json" -d '{"status":"tests passed","ciUser":"jenkinsAdmin"}' "http://localhost:8081/artifactory/api/build/promote/buildName/buildNumber"
But, unable to move the build from one repository to another. My aim to, promote the build from one repository to another when I run the cURL command with parameters. So that my build is moved to other repository and the status gets updated too.
I also get the below message when I run the curl command:
{"level":"INFO","message":"Skipping build item relocation: no target repository selected."}
This post relates to the question about changing existing build status in artifactory
Please Advice.
As described in the documentation, you just need to set the targetRepo parameter. Please note the snapshot-release handling policy in the target repository.
See if this script can help.
https://github.com/JFrogDev/artifactory-user-plugins/blob/8a06563d853995ea7f59f0f5f3a67bcb08b5c2e9/build/promotion/promotion.groovy
PS: Every team / company have different requirements, rules/policies on what to promote (artifacts), how to promote (steps) and what checks/rules/conditions/policies that I should make sure are true/false or set/passed before doing any promotion step; so change this code according to your needs.
Also check these: https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins#WorkingWithPipelineJobsinJenkins-PromotingBuildsinArtifactory on how you can do the same within Jenkins and for fun, look here: Delete jenkins builds during Promote / promotion step if you want to do some maintenance in Jenkins or in Artifactory.

Starting with Symfony2 and creating bundles

I am trying to start use Symfony2, and i have troubles with a first step.
In the documentation I found
To create a bundle called AcmeHelloBundle (a play bundle that you'll
build in this chapter), run the following command and follow the
on-screen instructions (use all of the default options):
php app/console generate:bundle --namespace=Acme/HelloBundle
> --format=yml
and I really don’t understand where should I write this string? In which program or in which file?
As Molecule Man said, it's a command line thing. But just to give a few more details:
Open up a console window (also called a command prompt in Windows)
Type "php --version" (no quotes). It should come back with a version number. If it says something like "can't find php" then you need to set a path to php.
Change directory to your Symfony directory
Type "php app/console" If everything is working then you will see a list of available commands. There are many things you can do from the command line.
If you happen to be on a unix system then you can make console executable and just use "./app/console"
Now try creating your bundle

tool for building software

I need something like make i.e. dependencies + executing shell commands where failing command stops make execution.
But more deeply integrated with shell i.e. now in make each line is executed in separate context so it is not easy to set variable in one line and use it in following line (I do not want escape char at end of line because it is not readable).
I want simple syntax (no XML) with control flow and functions (what is missing in make).
It does not have to have support for compilation. I have to just bind together several components built using autotools, package them, trigger test and publish results.
I looked at: make, ant, maven, scons, waf, nant, rake, cons, cmake, jam and they do not fit my needs.
take a look at doit
you can use shell commands or python functions to define tasks (builds).
very easy to use. write scripts in python. "no api" (you dont need to import anything in your script)
it has good support to track dependencies and targets
Have a look at fabricate.
If that does not fulfill your needs or if you would rather not write your build script in Python, you could also use a combination of shell scripting and fabricate. Write the script as you would to build your project manually, but prepend build calls with "fabricate.py" so build dependencies are managed automatically.
Simple example:
#!/bin/bash
EXE="myapp"
CC="fabricate.py gcc" # let fabricate handle dependencies
FILES="file1.c file2.c file3.c"
OBJS=""
# build link
for F in $FILES; do
echo $CC -c $F
if [ $? -ne 0 ]; then
echo "Build failed while compiling $F" >2
exit $?
fi
OBJS="$OBJS ${F/.c/.o}"
done
# link
$CC -o $EXE $OBJS
Given that you want control flow, functions, everything operating in the same environment and no XML, it sounds like you want to use the available shell script languages (sh/bash/ksh/zsh), or Perl (insert your own favourite scripting language here!).
I note you've not looked at a-a-p. I'm not familiar with this, other than it's a make system from the people who brought us vim. So you may want to look over that.
A mix of makefile and a scripting language to choose which makefile to run at a time could do it.
I have had the same needs. My current solution is to use makefiles to accurately represent the graph dependency (you have to read "Recursive make considered harmful"). Those makefiles trigger bash scripts that take makefiles variables as parameters. This way you have not to deal with the problem of shell context and you get a clear separation between the dependencies and the actions.
I'm currently considering waf as it seems well designed and fast enough.
You might want to look at SCons; it's a Make-replacement written in Python.

Resources